Fix platform mount scripts. Refs #2261

This commit is contained in:
Pavel Chipiga 2011-11-21 23:55:52 +02:00
parent 366ca320e0
commit a1afb81bb6
3 changed files with 5 additions and 5 deletions

6
bin/mount_rsync.sh Normal file → Executable file
View File

@ -1,7 +1,7 @@
for f in `ls /srv/rosa_build/current/tmp/mount` for f in `ls /srv/rosa_build/current/tmp/mount`
do 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" 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" rm -Rf "/srv/rosa_build/current/tmp/mount/$f"
done done

2
bin/rotate_nginx.sh Normal file → Executable file
View File

@ -3,4 +3,4 @@
mv /opt/nginx/logs/access.log /opt/nginx/logs/access.log.0 mv /opt/nginx/logs/access.log /opt/nginx/logs/access.log.0
/opt/nginx/sbin/nginx -s reload /opt/nginx/sbin/nginx -s reload
chown rosa /opt/nginx/logs/access.log.0 chown rosa /opt/nginx/logs/access.log.0
touch /home/rosa/i_was_launched.txt touch /home/rosa/i_was_launched.txt

2
bin/umount_rsync.sh Normal file → Executable file
View File

@ -3,4 +3,4 @@ do
umount "/srv/rosa_build/shared/downloads/$f" umount "/srv/rosa_build/shared/downloads/$f"
rm -Rf "/srv/rosa_build/shared/downloads/$f" rm -Rf "/srv/rosa_build/shared/downloads/$f"
rm -Rf "/srv/rosa_build/current/tmp/umount/$f" rm -Rf "/srv/rosa_build/current/tmp/umount/$f"
done done