summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-04-22 12:50:46 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-05-19 18:29:46 +0200
commit3242350d3f6ca73094b831a9526d965e7e9ebadb (patch)
treee38cf690dfafcba6de48ff8b18e871be4373efa0
parent20bb4f72e750963eef0bfa1fe7d10b5cd4f6eb53 (diff)
#973 Restart OpenGnsys service after stopping it
After updating OpenGnsys with the script, if there is a new version of the ogAdmServer, the script stop the service. So, you had to start manually the service once the update has finished. This commit makes a restart of the service after copying the new version of the ogAdmServer.
-rwxr-xr-xinstaller/opengnsys_update.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index 70d612c9..21587723 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -1029,11 +1029,13 @@ function moveNewService()
# Comparar los ficheros.
if ! diff -q $1 $2/$(basename $1) &>/dev/null; then
# Parar los servicios si fuese necesario.
- [ -z "$NEWSERVICES" ] && service="opengnsys" $STOPSERVICE
+ service="opengnsys"
+ [ -z "$NEWSERVICES" ] && $STOPSERVICE
# Nuevo servicio.
NEWSERVICES="$NEWSERVICES $(basename $1)"
# Mover el nuevo fichero de servicio
mv $1 $2
+ $STARTSERVICE
fi
}