main_part.include: fix - further more - a bug in script output.
This commit is contained in:
		| @@ -291,7 +291,7 @@ if [ "$found" = "true" -o "$pgsql_backup" = "true"  -o "$mysql_backup" = "true" | |||||||
|             echolog "\t${_val_arr[0]}: ${_val_arr[1]}" |             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 |             $ssh ${ssh_user}@${srcHost} "$sudo -u ${_val_arr[0]} ${_val_arr[1]}" > /dev/null 2> $err_Log | ||||||
|             if [[ "$?" -ne 0 ]]; then |             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 |             fi | ||||||
|  |  | ||||||
|          done |          done | ||||||
| @@ -364,7 +364,7 @@ if [ "$found" = "true" -o "$pgsql_backup" = "true"  -o "$mysql_backup" = "true" | |||||||
|             echolog "\t${_val_arr[0]}: ${_val_arr[1]}" |             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 |             $ssh ${ssh_user}@${srcHost} "$sudo -u ${_val_arr[0]} ${_val_arr[1]}" > /dev/null 2> $err_Log | ||||||
|             if [[ "$?" -ne 0 ]]; then |             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 |             fi | ||||||
|  |  | ||||||
|          done |          done | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user