This commit is contained in:
Claudio Maradonna 2020-07-31 15:37:06 +02:00
parent 17fedbff0a
commit fe0aa9e412
Signed by: claudiomaradonna
GPG Key ID: 0CBA58694C5680D9

View File

@ -35,9 +35,7 @@ if [ ! id -u autossh >/dev/null 2>&1 ]; then
useradd -m -s /bin/false autossh
fi
if id -u autossh >/dev/null 2>&1; then
echo "OK: user autossh exists."
else
if [ ! id -u autossh >/dev/null 2>&1 ]; then
echo "There are some problems with user creation. Exiting."
exit 1;
fi
@ -63,7 +61,7 @@ echo "OK: File and folder permissions setup."
echo "NEXT: Checking for systemd."
SYSTEMCTL_CMD=$(which systemctl)
if [[ -z $SYSTEMCTL_CMD ]]; then
if [[ ! -z $SYSTEMCTL_CMD ]]; then
echo "NEXT: Copy targets into /etc/default."
cp -n targets/* /etc/default/