diff options
-rwxr-xr-x | installer/opengnsys_installer.sh | 12 | ||||
-rwxr-xr-x | installer/opengnsys_update.sh | 3 |
2 files changed, 8 insertions, 7 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index bdcc568d..19163e41 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -1100,7 +1100,8 @@ function installWebConsoleApacheConf() $APACHEMAKECERT # Activar módulo Rewrite. $APACHEREWRITEMOD - + # Definir ficheros .pkg como binarios para descargar paquetes macOS. + sed -i '/pkg/! s/octet-stream\(.*\)/octet-stream\1 pkg/' /etc/mime-types # Genera configuración de consola web a partir del fichero plantilla. if [ -n "$(apachectl -v | grep "2\.[0-2]")" ]; then # Configuración para versiones anteriores de Apache. @@ -1115,12 +1116,11 @@ function installWebConsoleApacheConf() if [ $? -ne 0 ]; then errorAndLog "${FUNCNAME}(): config file can't be linked to apache conf, verify your server installation" return 1 - else - echoAndLog "${FUNCNAME}(): config file created and linked, restarting apache daemon" - service=$APACHESERV - $ENABLESERVICE; $STARTSERVICE - return 0 fi + echoAndLog "${FUNCNAME}(): config file created and linked, restarting apache daemon" + service=$APACHESERV + $ENABLESERVICE; $STARTSERVICE + return 0 } diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index d95d1bcc..fef3a1d4 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -460,7 +460,8 @@ function apacheConfiguration () echoAndLog "${FUNCNAME}(): Configuring Apache modules." sed -i '/rewrite/s/^#//' $APACHECFGDIR/*.conf fi - + # Definir ficheros .pkg como binarios para descargar paquetes macOS. + sed -i '/pkg/! s/octet-stream\(.*\)/octet-stream\1 pkg/' /etc/mime-types # Actualizar configuración para acceso a API REST # (solo actualizaciones de 1.0.x a 1.1.x). for config in $APACHECFGDIR/{,sites-available/}opengnsys.conf ]; do |