summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-08-02 11:02:49 +0200
committerRamón M. Gómez <ramongomez@us.es>2019-08-20 17:26:48 +0200
commit39720c640adf5d9e16625f24135e5c5a06499a04 (patch)
treeda44a4631267df9754495c3d08a00a81956d7cb5
parent2213b9a3531d1b84e96289d78d79ff3f98e08ccc (diff)
#912 opengnsys_update.sh: the script is fixed that inclued '/' at the end the REPO APITOKEN in repository configuration.
-rwxr-xr-xinstaller/opengnsys_update.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index 92dea9a9..11acd1bb 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -980,8 +980,8 @@ function compileServices()
popd
# 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
+ 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