mirror of
https://github.com/m8tin/cis.git
synced 2026-06-02 22:57:20 +02:00
18 lines
430 B
Bash
Executable File
18 lines
430 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 the monitoring this host ... " \
|
|
&& "${CIS[COREROOT]:?"Missing CIS_COREROOT"}addNormalUser.sh" monitoring \
|
|
&& echo \
|
|
&& "${CIS[COREROOT]:?"Missing CIS_COREROOT"}defineAuthorizedKeysOfUser.sh" "${CIS[DOMAINDEFINITIONS]}" monitoring \
|
|
&& exit 0
|
|
|
|
exit 1
|