Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 3042 → Rev 3043

/scripts/alcasar-conf.sh
192,14 → 192,6
$DIR_BIN/alcasar-bl.sh -reload
# admin profile update (admin + manager + backup)
$DIR_BIN/alcasar-profil.sh --list
# Start / Stop SSH Daemon
ssh_active=`grep "^SSH=" $CONF_FILE|cut -d"=" -f2`
if [ $ssh_active = "on" ]
then
/usr/bin/systemctl -q enable sshd.service
else
/usr/bin/systemctl -q disable sshd.service
fi
# Apply changes between versions
## V5.4 --> V5.5 ##
[ -e $DIR_ETC/alcasar-iptables-local.sh ] && cp $DIR_ETC/alcasar-iptables-local.sh $DIR_ETC/alcasar-iptables-local.sh.old && cp $CURRENT_DIR/conf/etc/alcasar-iptables-local.sh $DIR_ETC/ # new rule for SMTP output flows
503,22 → 495,6
fi
# Email user registration
$DIR_BIN/alcasar-mail-install.sh
# Start / Stop SSH Daemon
ssh_active=`grep ^SSH= $CONF_FILE|cut -d"=" -f2`
if [ $ssh_active = "on" ]
then
/usr/bin/systemctl enable sshd.service
if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
then
/usr/bin/systemctl start sshd.service
fi
else
/usr/bin/systemctl disable sshd.service
if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
then
/usr/bin/systemctl stop sshd.service
fi
fi
# Start / Stop LDAP authentification
if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
then