parent
17fedbff0a
commit
fe0aa9e412
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user