summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-03-20 10:00:58 +0000
committerramon <ramongomez@us.es>2012-03-20 10:00:58 +0000
commit55477d293862a9965f044b558d1224104dc2dd2b (patch)
tree52b590e2d75a1dccb2b14e03915db0b02d12fc68 /installer
parent643ca8ca716a9f5495b2a0d392d6ecfa063e4af0 (diff)
Versión 1.0.4, #414: Arrancar servicios en CentOS; mejoras en ficheros de cron.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2902 a21b9725-9963-47de-94b9-378ad31fedc9
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