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