diff options
author | ramon <ramongomez@us.es> | 2014-05-02 11:57:32 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2014-05-02 11:57:32 +0000 |
commit | 584b103e0760ee0961e6a7b6058c3aaa28f21b62 (patch) | |
tree | bf50d01dd684ba748ec192f6720e8eae92f7026c /installer | |
parent | 1f70498dd860b9bf719b37a53b8d4c21c2fabf68 (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-x | installer/opengnsys_installer.sh | 8 |
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 |