From 533e535d36f5df9a0870aeebfcc83deb694b3260 Mon Sep 17 00:00:00 2001 From: Fathan Vidjaja Date: Thu, 6 Jun 2019 14:54:56 +0200 Subject: [PATCH] Bug #49399: redirect error message from tdbbackup to stderr so cron will email error --- services/univention-samba4/sbin/univention-samba4-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/univention-samba4/sbin/univention-samba4-backup b/services/univention-samba4/sbin/univention-samba4-backup index 25747a3ca2..4ae652a5ab 100755 --- a/services/univention-samba4/sbin/univention-samba4-backup +++ b/services/univention-samba4/sbin/univention-samba4-backup @@ -137,7 +137,7 @@ for d in $DIRS; do tdbbackup $file Status=$? if [ $Status -ne 0 ]; then - echo "Error while backing up $file with tdbbackup - status $Status" + >&2 echo "Error while backing up $file with tdbbackup - status $Status" exit 1 fi fi -- 2.17.1