diff options
author | ramon <ramongomez@us.es> | 2010-11-12 22:45:00 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2010-11-12 22:45:00 +0000 |
commit | cde13b80a7004e3db11e11cc29dbdaff1b25761b (patch) | |
tree | 4547625578eb526c97e23e2042f872747b99f7b8 /installer | |
parent | 6a6f1fb3b617e909016a08f95b81b7669b209359 (diff) |
Modificado desinstalador para no eliminar el directorio de imágenes del repositorio e indicar que el borrado puede hacerse como una tarea posterior.
Close #249.
git-svn-id: https://opengnsys.es/svn/trunk@1340 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/opengnsys_uninstall.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/installer/opengnsys_uninstall.sh b/installer/opengnsys_uninstall.sh index 9fbfbcbb..b70245dc 100755 --- a/installer/opengnsys_uninstall.sh +++ b/installer/opengnsys_uninstall.sh @@ -30,9 +30,15 @@ if test $DROP; then fi # Eliminar ficheros. echo "Deleting OpenGnSys files." -rm -fr /opt/opengnsys +for dir in /opt/opengnsys/*; do + if [ "$dir" != "/opt/opengnsys/images" ]; then + rm -fr "$dir" + fi +done rm -f /etc/init.d/opengnsys /etc/default/opengnsys -echo "Post-installation tasks:" +# Tareas manuales a realizar después de desinstalar. +echo "Manual tasks:" echo "- You may stop or uninstall manually all other services" echo " (DHCP, PXE, TFTP, NFS, Apache, MySQL)." +echo "- Delete repository directory \"/opt/opengnsys/images\"" |