summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh5
-rwxr-xr-xinstaller/opengnsys_uninstall.sh1
2 files changed, 5 insertions, 1 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index 5b86cfd6..6dd5405a 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -66,6 +66,7 @@ OPENGNSYS_DB_CREATION_FILE=opengnsys/admin/Database/ogAdmBD.sql
# - APACHEINIT, APACHECFGDIR, APACHEUSER, APACHEGROUP - arranque y configuración de Apache
# - APACHEENABLESSL, APACHEMAKECERT - habilitar módulo Apache y certificado SSL
# - APACHEENABLEOG, APACHESITESDIR - habilitar sitio web de OpenGnSys
+# - INETDINIT - arranque del metaservicio Inetd
# - DHCPINIT, DHCPCFGDIR - arranque y configuración de DHCP
# - MYSQLINIT - arranque de MySQL
# - SAMBAINIT, SAMBACFGDIR - arranque y configuración de Samba
@@ -93,6 +94,7 @@ case "$OSDISTRIB" in
APACHEMAKECERT="make-ssl-cert generate-default-snakeoil --force-overwrite"
DHCPINIT=/etc/init.d/isc-dhcp-server
DHCPCFGDIR=/etc/dhcp
+ INETDINIT=/etc/init.d/openbsd-inetd
MYSQLINIT=/etc/init.d/mysql
SAMBAINIT=/etc/init.d/smbd
SAMBACFGDIR=/etc/samba
@@ -111,6 +113,7 @@ case "$OSDISTRIB" in
APACHEGROUP="apache"
DHCPINIT=/etc/init.d/dhcpd
DHCPCFGDIR=/etc/dhcp
+ INETDINIT=/etc/init.d/xinetd
MYSQLINIT=/etc/init.d/mysqld
SAMBAINIT=/etc/init.d/smb
SAMBACFGDIR=/etc/samba
@@ -676,7 +679,7 @@ function tftpConfigure()
{
echoAndLog "${FUNCNAME}(): Configuring TFTP service."
# reiniciamos demonio internet ????? porque ????
- /etc/init.d/openbsd-inetd start
+ $INETDINIT start
# preparacion contenedor tftpboot
cp -a /usr/lib/syslinux/ $TFTPCFGDIR/syslinux
diff --git a/installer/opengnsys_uninstall.sh b/installer/opengnsys_uninstall.sh
index f9b5ce0e..3ba22c7f 100755
--- a/installer/opengnsys_uninstall.sh
+++ b/installer/opengnsys_uninstall.sh
@@ -50,6 +50,7 @@ for dir in $OPENGNSYS/*; do
fi
done
rm -f /etc/init.d/opengnsys /etc/default/opengnsys /var/log/opengnsys
+rm -f /etc/cron.d/{opengnsys,torrentcreator,torrenttracker}
# 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