[refs #2249] Add sh scripts into bin directory

This commit is contained in:
konstantin.grabar 2011-11-21 16:55:38 +04:00
parent ce60f7b057
commit cd0f7462c5
3 changed files with 18 additions and 0 deletions

6
bin/mount_rsync.sh Normal file
View File

@ -0,0 +1,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"
done

6
bin/rotate_nginx.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
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

6
bin/umount_rsync.sh Normal file
View File

@ -0,0 +1,6 @@
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"
done