Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2456 → Rev 2457

/scripts/alcasar-uninstall.sh
77,7 → 77,7
done
if [ $mode == "update" ] # reload sshd in case of remote update
then
systemctl reload sshd
/usr/bin/systemctl reload sshd
fi
echo "Reset ALCASAR main functions : "
echo -en "\n- init (1) : "
280,7 → 280,7
[ -e /etc/modprobe.preload.default ] && mv -f /etc/modprobe.preload.default /etc/modprobe.preload && echo -n "7, "
[ -e /lib/systemd/system/iptables.service.default ] && mv -f /lib/systemd/system/iptables.service.default /lib/systemd/system/iptables.service && echo -n "8, "
[ -e /usr/libexec/iptables.init.default ] && mv -f /usr/libexec/iptables.init.default /usr/libexec/iptables.init && echo -n "9"
/sbin/ifup $EXTIF
/usr/bin/systemctl restart network
sleep 1
fi
 
293,7 → 293,6
[ -e /etc/sudoers.default ] && mv -f /etc/sudoers.default /etc/sudoers && echo -n "5, "
[ -e /lib/systemd/system/alcasar-load_balancing.service ] && rm -f /lib/systemd/system/alcasar-load_balancing.service && echo -n "6, "
[ -e /etc/default/grub.default ] && mv -f /etc/default/grub.default /etc/default/grub && echo -n "7"
/usr/bin/update-grub2
sleep 1
 
# Cleaning (remove all "old" alcasar scripts)
302,3 → 301,16
do
rm -rf $rm_fic/alcasar*
done
/usr/bin/update-grub2
echo "Waiting for Network to be up again ..."
i=0
while [ $i -lt 10 ] # We wait 10 seconds max
do
DNS1=`grep ^nameserver /etc/resolv.conf|awk -F" " '{print $2}'|head -n 1`
if [ "$DNS1" != "" ] && [ "$DNS1" != "127.0.0.1" ]
then
i=9
fi
i=`expr $i + 1`
sleep 1
done