mirror of
https://github.com/m8tin/cis.git
synced 2026-06-02 14:56:58 +02:00
20 lines
615 B
Bash
Executable File
20 lines
615 B
Bash
Executable File
#!/bin/bash
|
|
if [ $(id -u) -ne 0 ]; then
|
|
sudo "${0}" && exit 0
|
|
exit 1
|
|
fi
|
|
|
|
source /cis/core/base.module.sh
|
|
|
|
|
|
|
|
echo "Setup the user and permission to enable syncing compositions of this host ... " \
|
|
&& "${CIS[COREROOT]:?"Missing CORE_SCRIPTS"}addNormalUser.sh" composition-sync \
|
|
&& echo \
|
|
&& "${CIS[COREROOT]:?"Missing CORE_SCRIPTS"}defineAuthorizedKeysOfUser.sh" "${CIS[DOMAINDEFINITIONS]}" composition-sync \
|
|
&& echo \
|
|
&& "${CIS[COREROOT]:?"Missing CORE_SCRIPTS"}ensureUsageOfDefinitions.sh" "${CIS[DOMAINDEFINITIONS]}" /etc/sudoers.d/allow-composition-sync-send \
|
|
&& exit 0
|
|
|
|
exit 1
|