Commit 61efa277 authored by Cédric BRINER's avatar Cédric BRINER

del vmgars

parent 02e01b91
......@@ -63,7 +63,6 @@ function test_prerequesite
do_exit="True"
fi
done
if [[ ${do_exit} = "True" ]]; then
pb "Some commands are missing ! Exit."
exit
......@@ -75,6 +74,15 @@ function clean_up
pb "clean_up"
pb " - rm -fr /etc/unige_prod/ug-vmware/"
rm -fr /etc/unige_prod/ug-vmware/ | tab 3
pb " - rm -f /usr/local/bin/ug-master2instance"
rm -f /usr/local/bin/ug-master2instance
pb " - deluser --remove-home vmgars"
deluser --remove-home vmgars | tab 3
pb " - systemctl disable ssh"
systemctl disable ssh | tab 3
pb " - systemctl stop ssh"
systemctl stop ssh | tab 3
}
function change_hostname
......@@ -225,10 +233,10 @@ function clean_it
pb "close_it"
pb " - rm /usr/local/bin/ug-master2instance"
rm /usr/local/bin/ug-master2instance
pb " - disable ssh."
systemctl disable ssh | tab 3
pb " - stop ssh."
systemctl stop ssh | tab 3
# pb " - disable ssh."
# systemctl disable ssh | tab 3
# pb " - stop ssh."
# systemctl stop ssh | tab 3
}
new_hostname="$1"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment