From 1a24dc2b56706eea05d444ac5e719ae584c4b678 Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Mon, 21 Nov 2011 18:56:15 +0400 Subject: [PATCH] [refs #2249] Some scripts changes --- bin/mount_rsync.sh | 3 ++- bin/umount_rsync.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mount_rsync.sh b/bin/mount_rsync.sh index f9956abf4..f430ff694 100644 --- a/bin/mount_rsync.sh +++ b/bin/mount_rsync.sh @@ -2,5 +2,6 @@ for f in `ls /srv/rosa_build/current/tmp/mount` do mkdir "/srv/rosa_build/shared/downloads/$f" mount --bind "/home/share/platforms/$f" "/srv/rosa_build/shared/downloads/$f" - rm -f "/srv/rosa_build/current/tmp/mount/$f" + mv -f "/srv/rosa_build/current/tmp/mount/$f/*" "/home/share/platforms/$f" + rm -Rf "/srv/rosa_build/current/tmp/mount/$f" done \ No newline at end of file diff --git a/bin/umount_rsync.sh b/bin/umount_rsync.sh index ba48119fe..b15b0678f 100644 --- a/bin/umount_rsync.sh +++ b/bin/umount_rsync.sh @@ -2,5 +2,5 @@ for f in `ls /srv/rosa_build/current/tmp/umount` do umount "/srv/rosa_build/shared/downloads/$f" rm -Rf "/srv/rosa_build/shared/downloads/$f" - rm -f "/srv/rosa_build/current/tmp/umount/$f" + rm -Rf "/srv/rosa_build/current/tmp/umount/$f" done \ No newline at end of file