122,6 → 122,7 |
## Load an archive conf file ## |
################################################### |
--load|-load) |
CURRENT_DIR=`pwd` # install folder |
cd /var/tmp || { echo "Unable to find /var/tmp directory"; } |
tar -xf alcasar-conf.tar.gz |
# update alcasar.conf parameters |
199,6 → 200,9 |
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 |
# Remove the update folder |
rm -rf $DIR_UPDATE |
;; |
497,6 → 501,8 |
$DIR_BIN/alcasar-bl.sh -reload && echo -n ", unbound-blacklist, unbound-whitelist, dnsmasq-whitelist, e2guardian, iptables" |
/usr/bin/systemctl restart lighttpd && echo -n ", lighttpd" |
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" ] |