From a1afb81bb6e88c77f4fed764330efab80077b1eb Mon Sep 17 00:00:00 2001 From: Pavel Chipiga Date: Mon, 21 Nov 2011 23:55:52 +0200 Subject: [PATCH] Fix platform mount scripts. Refs #2261 --- bin/mount_rsync.sh | 6 +++--- bin/rotate_nginx.sh | 2 +- bin/umount_rsync.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 bin/mount_rsync.sh mode change 100644 => 100755 bin/rotate_nginx.sh mode change 100644 => 100755 bin/umount_rsync.sh diff --git a/bin/mount_rsync.sh b/bin/mount_rsync.sh old mode 100644 new mode 100755 index f430ff694..80667de57 --- a/bin/mount_rsync.sh +++ b/bin/mount_rsync.sh @@ -1,7 +1,7 @@ for f in `ls /srv/rosa_build/current/tmp/mount` do - mkdir "/srv/rosa_build/shared/downloads/$f" + mkdir -p "/srv/rosa_build/shared/downloads/$f" mount --bind "/home/share/platforms/$f" "/srv/rosa_build/shared/downloads/$f" - mv -f "/srv/rosa_build/current/tmp/mount/$f/*" "/home/share/platforms/$f" + cp -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 +done diff --git a/bin/rotate_nginx.sh b/bin/rotate_nginx.sh old mode 100644 new mode 100755 index 5952c2120..ea00970a4 --- a/bin/rotate_nginx.sh +++ b/bin/rotate_nginx.sh @@ -3,4 +3,4 @@ mv /opt/nginx/logs/access.log /opt/nginx/logs/access.log.0 /opt/nginx/sbin/nginx -s reload chown rosa /opt/nginx/logs/access.log.0 -touch /home/rosa/i_was_launched.txt \ No newline at end of file +touch /home/rosa/i_was_launched.txt diff --git a/bin/umount_rsync.sh b/bin/umount_rsync.sh old mode 100644 new mode 100755 index b15b0678f..928846c25 --- a/bin/umount_rsync.sh +++ b/bin/umount_rsync.sh @@ -3,4 +3,4 @@ do umount "/srv/rosa_build/shared/downloads/$f" rm -Rf "/srv/rosa_build/shared/downloads/$f" rm -Rf "/srv/rosa_build/current/tmp/umount/$f" -done \ No newline at end of file +done