Commit 2358cd2c authored by Miguel Esteva's avatar Miguel Esteva

Fix mounts

parent 83433593
......@@ -33,21 +33,13 @@ then
# Add the NFS fix
sed "s/\/stornext\/General /\/stornext\/General_real /" /etc/fstab -i
mkdir -p /stornext/General_real
echo "/stornext/General_real localhost(rw,no_root_squash)" > /etc/exports
echo "/stornext/General localhost(rw,no_root_squash)" > /etc/exports
# Fix rc.local
echo "# New mounts and fixes" >> /etc/rc.local
echo "service nfs start" >> /etc/rc.local
echo "mount localhost:/stornext/General_real /wehisan/general" >> /etc/rc.local
echo "mount --bind /stornext/General_real/data /wehisan/general" >> /etc/rc.local
echo "mount --bind /stornext/General_real/tmpdata /wehisan/tmpgeneral" >> /etc/rc.local
sed -i "/mount --bind \/stornext\/General\/data \/wehisan\/general/d" /etc/rc.local
sed -i "/mount --bind \/stornext\/General\/tmpdata \/wehisan\/tmpgeneral/d" /etc/rc.local
sed -i "/\/etc\/init.d\/rstudio-server restart/d" /etc/rc.local
echo "mount localhost:/stornext/General/data /wehisan/general" >> /etc/rc.local
echo "# Restart Rstudio" >> /etc/rc.local
echo "/usr/sbin/rstudio-server start" >> /etc/rc.local
......@@ -59,12 +51,10 @@ then
# Start NFS
service nfs start
mount localhost:/stornext/General_real /wehisan/general
mount localhost:/stornext/General/data /wehisan/general
# Mount wehisan
mount --bind /stornext/Archive/data /wehisan/archive
mount --bind /stornext/General_real/data /wehisan/general
mount --bind /stornext/General_real/tmpdata /wehisan/tmpgeneral
mount --bind /stornext/Home/data /wehisan/home
mount --bind /stornext/Bioinf/data /wehisan/bioinf
mount --bind /stornext/Genomics/data /wehisan/genomics
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment