diff options
author | ramon <ramongomez@us.es> | 2014-10-22 11:20:24 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2014-10-22 11:20:24 +0000 |
commit | cd86637886efa13643903f464a4ac6274d25812c (patch) | |
tree | 0abeb40dab729bc9cab505a54a5b1e8f6c54abd6 /installer | |
parent | 5cc522952236b166be477d76ba5c55e92d8e36b4 (diff) |
#673: Cambiar mensaje de error por mensaje de aviso cuando el actualizador no puede crear copia de seguridad de un fichero.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4408 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/opengnsys_installer.sh | 2 | ||||
-rwxr-xr-x | installer/opengnsys_update.sh | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 44552d70..3ecbe4c6 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -327,7 +327,7 @@ function errorAndLog() function warningAndLog() { local DATETIME=`getDateTime` - echo "ERROR: $1" + echo "Warning: $1" echo "$DATETIME;$SSH_CLIENT;Warning: $1" >> $LOG_FILE } diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index b2b2d543..d33bed48 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -195,6 +195,14 @@ function errorAndLog() echo "$DATETIME;$SSH_CLIENT;ERROR: $1" >> $LOG_FILE } +# Escribe a fichero y muestra mensaje de aviso +function warningAndLog() +{ + local DATETIME=`getDateTime` + echo "Warning: $1" + echo "$DATETIME;$SSH_CLIENT;Warning: $1" >> $LOG_FILE +} + ##################################################################### ####### Funciones de copia de seguridad y restauraciĆ³n de ficheros @@ -213,7 +221,7 @@ function backupFile() local fecha=`date +%Y%m%d` if [ ! -f $fichero ]; then - errorAndLog "${FUNCNAME}(): file $fichero doesn't exists" + warningAndLog "${FUNCNAME}(): file $fichero doesn't exists" return 1 fi |