summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authoralbertogp <albertogp@uma.es>2021-03-23 10:27:18 +0100
committeralbertogp <albertogp@uma.es>2021-03-23 10:27:18 +0100
commit9aebade3419d33a1c986f7b3db1b69a414bfacac (patch)
treecc211a0e35636b51ea2752a3bc96dc6f72be2ec3 /installer
parentac2d1cc7e4de0632d458c69d3305c72d1d4b6156 (diff)
"ID-824 Modificando comando setBootMode por bootOs"
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh4
-rwxr-xr-xinstaller/opengnsys_update.sh8
2 files changed, 10 insertions, 2 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index ed892df0..3f054949 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -1097,7 +1097,7 @@ function installWebFiles()
errorAndLog "${FUNCNAME}(): Error copying web files."
exit 1
fi
-
+
# Descomprimir librerías: Slim y Swagger-UI.
unzip -o $WORKDIR/opengnsys/admin/$SLIMFILE -d $INSTALL_TARGET/www/rest
unzip -o $WORKDIR/opengnsys/admin/$SWAGGERFILE -d $INSTALL_TARGET/www/rest
@@ -1243,6 +1243,8 @@ function createDirs()
mkdir -p $path_opengnsys_base/etc
mkdir -p $path_opengnsys_base/lib
mkdir -p $path_opengnsys_base/log/clients
+ mkdir -p $path_opengnsys_base/log/clients/setBootMode
+ chmod 777 $path_opengnsys_base/log/clients/setBootMode
ln -fs $path_opengnsys_base/log /var/log/opengnsys
mkdir -p $path_opengnsys_base/sbin
mkdir -p $path_opengnsys_base/www
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index 4b244b28..7ae6bec5 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -749,7 +749,7 @@ function updateWebFiles()
perl -pi -e 's!http://!https://!g' $INSTALL_TARGET/www/controlacceso.php
NEWFILES="$NEWFILES $INSTALL_TARGET/www/controlacceso.php"
fi
-
+
# Compatibilidad con dispositivos móviles.
COMPATDIR="$INSTALL_TARGET/www/principal"
for f in acciones administracion aula aulas hardwares imagenes menus repositorios softwares; do
@@ -841,6 +841,12 @@ function createDirs()
mkdir -p ${INSTALL_TARGET}/{bin,doc,etc,lib,sbin,www}
mkdir -p ${INSTALL_TARGET}/{client,images/groups}
mkdir -p ${INSTALL_TARGET}/log/clients
+ if [ ! -d ${INSTALL_TARGET}/log/clients/setBootMode ]; then
+ mkdir -p ${INSTALL_TARGET}/log/clients/setBootMode
+ chmod 777 ${INSTALL_TARGET}/log/clients/setBootMode
+ else
+ chmod 777 ${INSTALL_TARGET}/log/clients/setBootMode
+ fi
ln -fs ${INSTALL_TARGET}/log /var/log/opengnsys
# Detectar directorio de instalación de TFTP.
if [ ! -L ${INSTALL_TARGET}/tftpboot ]; then