Update mount for production case
This commit is contained in:
parent
7d2d080af5
commit
a5570f667c
|
@ -2,9 +2,19 @@
|
||||||
|
|
||||||
for f in `ls /srv/rosa_build/shared/downloads`
|
for f in `ls /srv/rosa_build/shared/downloads`
|
||||||
do
|
do
|
||||||
if [ -d /home/share/platforms/$f ]
|
if [ -d /home/share ]
|
||||||
then
|
# Staging case
|
||||||
sudo umount /srv/rosa_build/shared/downloads/$f 2>&1 >> /dev/null
|
if [ -d /home/share/platforms/$f ]
|
||||||
sudo mount --bind /home/share/platforms/$f /srv/rosa_build/shared/downloads/$f
|
then
|
||||||
fi
|
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
|
done
|
Loading…
Reference in New Issue