diff --git a/hosts/scripts/main_part.include b/hosts/scripts/main_part.include index dfb6ebd..7de9ba5 100644 --- a/hosts/scripts/main_part.include +++ b/hosts/scripts/main_part.include @@ -291,7 +291,7 @@ if [ "$found" = "true" -o "$pgsql_backup" = "true" -o "$mysql_backup" = "true" echolog "\t${_val_arr[0]}: ${_val_arr[1]}" $ssh ${ssh_user}@${srcHost} "$sudo -u ${_val_arr[0]} ${_val_arr[1]}" > /dev/null 2> $err_Log if [[ "$?" -ne 0 ]]; then - echolog "\t[ERROR] Executing command failed.\n $(cat "$err_Log") + echolog "\t[ERROR] Executing command failed.\n $(cat "$err_Log")" fi done @@ -364,7 +364,7 @@ if [ "$found" = "true" -o "$pgsql_backup" = "true" -o "$mysql_backup" = "true" echolog "\t${_val_arr[0]}: ${_val_arr[1]}" $ssh ${ssh_user}@${srcHost} "$sudo -u ${_val_arr[0]} ${_val_arr[1]}" > /dev/null 2> $err_Log if [[ "$?" -ne 0 ]]; then - echolog "\t[ERROR] Executing command failed.\n $(cat "$err_Log") + echolog "\t[ERROR] Executing command failed.\n $(cat "$err_Log")" fi done