summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2014-05-02 11:57:32 +0000
committerramon <ramongomez@us.es>2014-05-02 11:57:32 +0000
commit584b103e0760ee0961e6a7b6058c3aaa28f21b62 (patch)
treebf50d01dd684ba748ec192f6720e8eae92f7026c /installer
parent1f70498dd860b9bf719b37a53b8d4c21c2fabf68 (diff)
#616: Instalador compatible con Fedora 20 para activar el servicio TFTP sobre Xinetd.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4259 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index eecd5745..947a49d2 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -801,8 +801,12 @@ function tftpConfigure()
echoAndLog "${FUNCNAME}(): Configuring TFTP service."
# Habilitar TFTP y reiniciar Inetd.
if [ -n "$TFTPSERV" ]; then
- service=$TFTPSERV
- $ENABLESERVICE
+ if [ -f $INETDCFGDIR/$TFTPSERV ]; then
+ perl -pi -e 's/disable.*/disable = no/' $INETDCFGDIR/$TFTPSERV
+ else
+ service=$TFTPSERV
+ $ENABLESERVICE
+ fi
fi
service=$INETDSERV
$ENABLESERVICE; $STARTSERVICE