From 974afdabe20e90337335bcefdb51557089c6d022 Mon Sep 17 00:00:00 2001 From: ramon Date: Fri, 21 Oct 2011 12:45:22 +0000 Subject: Versión 1.0.2: desinstalador elimina el usuario de OpenGnSys (modifica #446). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.0@2360 a21b9725-9963-47de-94b9-378ad31fedc9 --- installer/opengnsys_uninstall.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'installer/opengnsys_uninstall.sh') 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" -- cgit v1.2.3-18-g5258