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