Print additional infos about errors to std_out.
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
if $mount_netdir ; then
|
||||
if [ $srcHost != "localhost" ] || $_via_ssh_tunnel ;then
|
||||
print_error_stdout "Mounting network directories is only possible for localhost - yet:\n $(cat $err_Log)"
|
||||
echolog ""
|
||||
echolog "\t[ERROR] Mounting network directories is only possible for localhost - yet"
|
||||
exit 1
|
||||
else
|
||||
@@ -31,6 +33,8 @@ if $mount_netdir ; then
|
||||
sleep 5
|
||||
|
||||
if ! df | grep "$backup_dir" > /dev/null 2>&1 ;then
|
||||
print_error_stdout "Cannot mount network directory to \"$backup_dir\":\n $(cat $err_Log)"
|
||||
echolog ""
|
||||
echolog "\t[ERROR] Cannot mount network directory to \"$backup_dir\""
|
||||
exit 1
|
||||
fi
|
||||
@@ -49,6 +53,8 @@ backup_dir=$backup_dir $script_dir/dir_backup.sh
|
||||
|
||||
if $mount_netdir ; then
|
||||
if [ $srcHost != "localhost" ];then
|
||||
print_error_stdout "Mounting network directories is only possible for localhost - yet:\n $(cat $err_Log)"
|
||||
echolog ""
|
||||
echolog "\t[ERROR] Mounting network directories is only possible for localhost - yet"
|
||||
exit 1
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user