From 37179cfdf3953073a7384347bbcb2c34deac1864 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 16 Sep 2015 16:39:29 +0200 Subject: [PATCH] Adapt winexe command so it works with v1.1 --- scripts/win-post-backup | 4 ++-- scripts/win-pre-backup | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/win-post-backup b/scripts/win-post-backup index eb59fc6..8244aa3 100644 --- a/scripts/win-post-backup +++ b/scripts/win-post-backup @@ -15,8 +15,8 @@ TIMEOUT=300 BOX=$1 if [[ ! -z $UNAME && ! -z $PASS ]]; then - /usr/bin/timeout $TIMEOUT $WINEXE -s /dev/null -U $UNAME --password=$PASS //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&- + /usr/bin/timeout $TIMEOUT $WINEXE -U $UNAME%$PASS //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&- else - /usr/bin/timeout $TIMEOUT $WINEXE -s /dev/null --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&- + /usr/bin/timeout $TIMEOUT $WINEXE --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&- fi echo "Rsync and shadow copy unloaded" diff --git a/scripts/win-pre-backup b/scripts/win-pre-backup index bd1788e..52ff442 100644 --- a/scripts/win-pre-backup +++ b/scripts/win-pre-backup @@ -13,9 +13,9 @@ TIMEOUT=300 BOX=$1 if [[ ! -z $UNAME && ! -z $PASS ]]; then - /usr/bin/timeout $TIMEOUT /usr/bin/winexe -s /dev/null --interactive=0 -U $UNAME --password=$PASS //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255 + /usr/bin/timeout $TIMEOUT /usr/bin/winexe --interactive=0 -U $UNAME%$PASS //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255 else - /usr/bin/timeout $TIMEOUT /usr/bin/winexe -s /dev/null --interactive=0 --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255 + /usr/bin/timeout $TIMEOUT /usr/bin/winexe --interactive=0 --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255 fi sleep 5 echo "Rsync and shadow copy loaded"