diff options
author | ramon <ramongomez@us.es> | 2011-10-21 12:45:22 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2011-10-21 12:45:22 +0000 |
commit | 974afdabe20e90337335bcefdb51557089c6d022 (patch) | |
tree | b92b2f2aaef698e6bf6da2d9ddff68a23ab52563 /installer/opengnsys_uninstall.sh | |
parent | 57cf15b048c257c1ba8b3ee217c2e631c936efd3 (diff) |
Versión 1.0.2: desinstalador elimina el usuario de OpenGnSys (modifica #446).
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2360 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer/opengnsys_uninstall.sh')
-rwxr-xr-x | installer/opengnsys_uninstall.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/installer/opengnsys_uninstall.sh b/installer/opengnsys_uninstall.sh index fe70d6fc..f9b5ce0e 100755 --- a/installer/opengnsys_uninstall.sh +++ b/installer/opengnsys_uninstall.sh @@ -11,6 +11,7 @@ DBUSER="usuog" # Usuario de acceso a la base de datos # Variables. OPENGNSYS="/opt/opengnsys" # Directorio de OpenGnSys OGIMG="images" # Directorio de imágenes del repositorio +CLIENTUSER="opengnsys" # Usuario de acceso del cliente # Parar servicio. echo "Uninstalling OpenGnSys services." @@ -52,6 +53,9 @@ rm -f /etc/init.d/opengnsys /etc/default/opengnsys /var/log/opengnsys # Comentar recursos de OpenGnSys en Samba. perl -pi -e "s/^ *include \= \/etc\/samba\/smb-og.conf/\; include \= \/etc\/samba\/smb-og.conf/" /etc/samba/smb.conf /etc/init.d/smbd restart +# Eliminar usuario de OpenGnSys. +smbpasswd -x $CLIENTUSER +userdel $CLIENTUSER # Tareas manuales a realizar después de desinstalar. echo "Manual tasks:" echo "- You may stop or uninstall manually all other services" |