Update mount for production case

This commit is contained in:
Vladimir Sharshov 2012-01-23 17:05:55 +04:00
parent 7d2d080af5
commit a5570f667c
1 changed files with 16 additions and 6 deletions

View File

@ -2,9 +2,19 @@
for f in `ls /srv/rosa_build/shared/downloads`
do
if [ -d /home/share/platforms/$f ]
then
sudo umount /srv/rosa_build/shared/downloads/$f 2>&1 >> /dev/null
sudo mount --bind /home/share/platforms/$f /srv/rosa_build/shared/downloads/$f
fi
if [ -d /home/share ]
# Staging case
if [ -d /home/share/platforms/$f ]
then
sudo umount /srv/rosa_build/shared/downloads/$f 2>&1 >> /dev/null
sudo mount --bind /home/share/platforms/$f /srv/rosa_build/shared/downloads/$f
fi
else
# Production case
if [ -d /share/platforms/$f ]
then
sudo umount /srv/rosa_build/shared/downloads/$f 2>&1 >> /dev/null
sudo mount --bind /share/platforms/$f /srv/rosa_build/shared/downloads/$f
fi
fi
done