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 ]
|
||||||
|
# Staging case
|
||||||
if [ -d /home/share/platforms/$f ]
|
if [ -d /home/share/platforms/$f ]
|
||||||
then
|
then
|
||||||
sudo umount /srv/rosa_build/shared/downloads/$f 2>&1 >> /dev/null
|
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
|
sudo mount --bind /home/share/platforms/$f /srv/rosa_build/shared/downloads/$f
|
||||||
fi
|
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