Update mm-scripts.sh
This commit is contained in:
@@ -1165,9 +1165,11 @@ MMSETUP(){
|
|||||||
fi
|
fi
|
||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
|
||||||
echo -en "${idsCL[LightCyan]}Configuring and mounting ... ${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Configuring and mounting ... ${idsCL[Default]}"
|
||||||
if [ "${PLEXSERVER}" != "" ] && [ "${PLEXUSER}" != "" ] && [ "${PLEXPASSWORD}" != "" ] && [ "${PLEXFOLDER}" != "" ]; then
|
if [ "${PLEXSERVER}" != "" ] && [ "${PLEXUSER}" != "" ] && [ "${PLEXPASSWORD}" != "" ] && [ "${PLEXFOLDER}" != "" ]; then
|
||||||
|
sudo sed -i '/\/mnt\/plex-media/d' /etc/fstab
|
||||||
sudo echo "sshfs#${PLEXUSER}@${PLEXSERVER}:${PLEXFOLDER} /mnt/plex-media fuse ,_netdev,reconnect,allow_other,umask=002,gid=100,uid=1000,IdentityFile=/root/.ssh/id_rsa 0 0" >> /etc/fstab
|
sudo echo "sshfs#${PLEXUSER}@${PLEXSERVER}:${PLEXFOLDER} /mnt/plex-media fuse ,_netdev,reconnect,allow_other,umask=002,gid=100,uid=1000,IdentityFile=/root/.ssh/id_rsa 0 0" >> /etc/fstab
|
||||||
|
umount /mnt/plex-media 2>&1
|
||||||
mount -a >/dev/null 2>&1
|
mount -a >/dev/null 2>&1
|
||||||
sleep 2s
|
sleep 2s
|
||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
@@ -1189,6 +1191,7 @@ MMSETUP(){
|
|||||||
echo -e "${idsCL[Green]}Your Plex Media is now mounted, and will automatically remount at startup.${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Your Plex Media is now mounted, and will automatically remount at startup.${idsCL[Default]}"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
echo
|
||||||
echo -e "${idsCL[Magenta]}Missing info, configure mounting to '${idsCL[White]}/mnt/plex-media${idsCL[Magenta]}' manually${idsCL[Default]}"
|
echo -e "${idsCL[Magenta]}Missing info, configure mounting to '${idsCL[White]}/mnt/plex-media${idsCL[Magenta]}' manually${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user