summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_update.sh
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-06-21 13:22:43 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-06-24 13:46:10 +0200
commit8948748c0c16ae24ed8a8f353894062f3798899b (patch)
tree847bd119dc15cf221659aa94d368c3755dce6dbb /installer/opengnsys_update.sh
parent2ccec2784366d4228660f32c8f0d4cafc7d6ec40 (diff)
#915 update installer to add APITOKEN= to ogAdmServer.cfg
This is going to be used to protect calls to ogAdmServer Example line for ogAdmServer.cfg: APITOKEN=9b5fddfc5d4d1daa74ffd7ce7c3c9925
Diffstat (limited to 'installer/opengnsys_update.sh')
-rwxr-xr-xinstaller/opengnsys_update.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index f8cee6eb..92dea9a9 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -981,6 +981,7 @@ function compileServices()
# Parar antiguo servicio de repositorio y añadir clave de acceso REST en su fichero de configuración.
pgrep ogAdmRepo > /dev/null && service="ogAdmRepo" $STOPSERVICE
sed -i -n -e "/^ApiToken=/!p" -e "$ a\ApiToken=$REPOKEY/" $INSTALL_TARGET/etc/ogAdmRepo.cfg
+ sed -i -n -e "/^APITOKEN=/!p" -e "$ a\APITOKEN=$REPOKEY/" $INSTALL_TARGET/etc/ogAdmServer.cfg
# Compilar OpenGnsys Agent
echoAndLog "${FUNCNAME}(): Recompiling OpenGnsys Server Agent"
pushd $WORKDIR/opengnsys/admin/Sources/Services/ogAdmAgent