summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_update.sh
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-06-19 12:33:10 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-19 15:07:23 +0200
commitc583144e36023399425ac0b05460afd1b519eb5b (patch)
tree2b90c0f303de82daf41f984b0708d13c75db97d0 /installer/opengnsys_update.sh
parentf6e87d351413b9b2b3a09ffd54d71ebc4280222a (diff)
#986 Rename to ogserver
Step forward to rename all ogAdmServer references to ogServer
Diffstat (limited to 'installer/opengnsys_update.sh')
-rwxr-xr-xinstaller/opengnsys_update.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index ffe262d8..904a1184 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -53,8 +53,8 @@ if [ ! -d $INSTALL_TARGET ]; then
exit 1
fi
# Cargar configuración de acceso a la base de datos.
-if [ -r $INSTALL_TARGET/etc/ogAdmServer.cfg ]; then
- source $INSTALL_TARGET/etc/ogAdmServer.cfg
+if [ -r $INSTALL_TARGET/etc/ogserver.cfg ]; then
+ source $INSTALL_TARGET/etc/ogserver.cfg
fi
OPENGNSYS_DATABASE=${OPENGNSYS_DATABASE:-"$CATALOG"} # Base de datos
OPENGNSYS_DBUSER=${OPENGNSYS_DBUSER:-"$USUARIO"} # Usuario de acceso
@@ -1075,7 +1075,7 @@ function ogServerCompilation()
echoAndLog "${FUNCNAME}(): Recompiling OpenGnsys Admin Server"
pushd "$WORKDIR/ogServer-$BRANCH"
- autoreconf -fi && ./configure && make && moveNewService ogAdmServer $INSTALL_TARGET/sbin
+ autoreconf -fi && ./configure && make && moveNewService ogserver $INSTALL_TARGET/sbin
if [ $? -ne 0 ]; then
echoAndLog "${FUNCNAME}(): error while compiling OpenGnsys Server"
error=1
@@ -1089,7 +1089,7 @@ function ogServerCompilation()
rm -f $INSTALL_TARGET/sbin/ogAdmAgent
# Generar un API token de ogAdmServer si no existe en el fichero de configuración.
- grep -q "APITOKEN=" $INSTALL_TARGET/etc/ogAdmServer.cfg || \
+ grep -q "APITOKEN=" $INSTALL_TARGET/etc/ogserver.cfg || \
$INSTALL_TARGET/bin/settoken -f
if ! diff -q \