Commit 33654f24 authored by Jondy Zhao's avatar Jondy Zhao

Remove instance root before uninstall slapos node

parent 257891e8
......@@ -12,6 +12,9 @@
# * Remove service cron, cygserver and syslog-ng
#
# * Remove slapos configure script from windows startup item
#
# * Remove instance root /srv/slapgrid
#
#
# Remove virtual netcard installed by re6stnet
......@@ -39,6 +42,12 @@ slapos_run_entry=slapos-configure
echo Removing startup item "$slapos_run_key\\$slapos_run_entry"
regtool -q unset "$slapos_run_key\\$slapos_run_entry"
#
# Remove default instance root, because it belong to slapuser, and
# would be removed by the windows uninstaller.
#
[[ -f /srv/slapgrid ]] && echo Removing /srv/slapgrid && rm -rf /srv/slapgrid
echo Run pre-uninstall script successfully.
read -n 1 -t 60 -p "Press any key to exit..."
exit 0
......
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