From a3a1ff21dde647ae1e3d8d9fc8552e039bcc3022 Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Wed, 13 Jun 2018 08:10:25 +0200 Subject: #840: Checking permissions and directories after Git downloads. --- installer/opengnsys_update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'installer/opengnsys_update.sh') diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 3635f3d8..be36d643 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -179,6 +179,7 @@ function checkAutoUpdate() # Actaulizar el script si ha cambiado o no existe el original. if [ $REMOTE -eq 1 ]; then curl -s $RAW_URL/installer/$PROGRAMNAME -o $PROGRAMNAME + chmod +x $PROGRAMNAME if ! diff -q $PROGRAMNAME $INSTALL_TARGET/lib/$PROGRAMNAME 2>/dev/null || ! test -f $INSTALL_TARGET/lib/$PROGRAMNAME; then mv $PROGRAMNAME $INSTALL_TARGET/lib update=1 @@ -204,7 +205,7 @@ function getDateTime() # Escribe a fichero y muestra por pantalla function echoAndLog() { - echo $1 + echo "$1" DATETIME=`getDateTime` echo "$DATETIME;$SSH_CLIENT;$1" >> $LOG_FILE } -- cgit v1.2.3-18-g5258