Fix platform mount scripts. Refs #2261
This commit is contained in:
parent
366ca320e0
commit
a1afb81bb6
|
@ -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
|
||||
done
|
||||
|
|
|
@ -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
|
||||
touch /home/rosa/i_was_launched.txt
|
||||
|
|
|
@ -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
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue