/scripts/alcasar-daemon.sh |
---|
26,9 → 26,11 |
echo "the $service service is disabled! trying to start it..." |
if [ $service == 'gammu-smsd' ]; then |
/usr/local/bin/alcasar-sms.sh --start |
else |
/usr/bin/systemctl start $service.service |
fi |
if [ $service == 'sshd' ]; then |
[ -s /etc/ssh/ssh_host_rsa_key ] || rm -f /etc/ssh/ssh_host_* # sometimes sshd doesn't initialise its keys |
fi |
/usr/bin/systemctl start $service.service |
else |
nb_srv=$((nb_srv+1)) |
fi |