24,7 → 24,11 |
if [ $(/usr/bin/systemctl is-active $service) != "active" ]; then |
logger -t alcasar-daemon -i "$service is inactive. Activation attempt" |
echo "the $service service is disabled! trying to start it..." |
/usr/bin/systemctl start $service.service |
if [ $service == 'gammu-smsd' ]; then |
/usr/local/bin/alcasar-sms.sh --start |
else |
/usr/bin/systemctl start $service.service |
fi |
else |
nb_srv=$((nb_srv+1)) |
fi |
73,8 → 77,8 |
then |
if [ $LDAP == "ON" ] || [ $LDAP == "on" ] || [ $LDAP == "On" ] |
then |
echo "Enable LDAP..." |
/usr/local/bin/alcasar-ldap.sh -on |
echo "Enabling LDAP..." |
/usr/local/bin/alcasar-ldap.sh -on |
fi |
fi |
|