Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2425 → Rev 2426

/scripts/alcasar-uninstall.sh
75,7 → 75,7
killall $i
fi
done
if [ mode == "update" ] # don't remove dnsmasq in update mode (DHCP + DNS !)
if [ $mode == "update" ] # reload sshd in case of remote update
then
systemctl reload sshd
fi
200,7 → 200,7
i=`expr $i + 1`
[ -e /lib/systemd/system/dnsmasq-$list.service ] && rm /lib/systemd/system/dnsmasq-$list.service && echo -n "$i, "
done
if [ mode == "full" ] # don't remove dnsmasq in update mode (DHCP + DNS !)
if [ $mode == "full" ] # don't remove dnsmasq in update mode (DHCP + DNS !)
then
if [ -e /lib/systemd/system/dnsmasq.service ]
then
230,7 → 230,7
[ -e /etc/cron.d/alcasar-distrib-updates ] && rm -f /etc/cron.d/alcasar-distrib-updates && echo -n "6, "
[ -e /etc/cron.d/alcasar-connections-stats ] && rm -f /etc/cron.d/alcasar-connections-stats && echo -n "7, "
[ -e /etc/cron.d/alcasar-watchdog ] && rm -f /etc/cron.d/alcasar-watchdog && echo -n "8, "
[ -e /etc/cron.d/alcasar-daemon-watchdog ] && rm -f /etc/cron.d/alcasar-daemon-watchdog && echo -n "9,"
[ -e /etc/cron.d/alcasar-daemon-watchdog ] && rm -f /etc/cron.d/alcasar-daemon-watchdog && echo -n "9, "
[ -e /etc/cron.d/alcasar-rsync-bl ] && rm -f /etc/cron.d/alcasar-rsync-bl && echo -n "10,"
sleep 1
 
254,10 → 254,10
[ -e /opt/acme.sh ] && /opt/acme.sh/acme.sh --uninstall --nocron 1>/dev/null && echo -n "2"
sleep 1
 
if [ mode == "full" ]
if [ $mode == "full" ]
then
echo -en "\n- network(9) : "
hostname localhost
hostnamectl set-hostname localhost.localdomain
CONF_FILE="/usr/local/etc/alcasar.conf"
EXTIF=`grep ^EXTIF= $CONF_FILE|cut -d"=" -f2` # EXTernal InterFace
INTIF=`grep ^INTIF= $CONF_FILE|cut -d"=" -f2` # INTernal InterFace