From 4e76c2a76a5ae8e0ade13363f0644136f6d5630a Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Tue, 16 May 2017 02:14:02 +0200 Subject: [PATCH] seems to be safer --- Yavsc/contrib/rsync-to-pre.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Yavsc/contrib/rsync-to-pre.sh b/Yavsc/contrib/rsync-to-pre.sh index b1d5af4e..b467346e 100755 --- a/Yavsc/contrib/rsync-to-pre.sh +++ b/Yavsc/contrib/rsync-to-pre.sh @@ -6,10 +6,13 @@ ssh root@localhost rm -rf $FSPATH/approot/src ( set -e +ssh root@localhost service kestrel stop cd bin/output/ rsync -ravu wwwroot approot root@localhost:$FSPATH +sleep 1 ssh root@localhost sync -ssh root@localhost service kestrel restart +sleep 1 +ssh root@localhost service kestrel start ) echo "Now, go and try "