diff --git a/mm-scripts.sh b/mm-scripts.sh index 6073647..ca119fc 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1164,12 +1164,14 @@ MMSETUP(){ sudo ssh-keygen -t rsa fi echo -e "${idsCL[Green]}Done${idsCL[Default]}" + sudo ssh-copy-id ${PLEXUSER}@${PLEXSERVER} + echo echo -e "${idsCL[LightCyan]}Configuring and mounting ... ${idsCL[Default]}" 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 - umount /mnt/plex-media 2>&1 + umount /mnt/plex-media >/dev/null 2>&1 mount -a >/dev/null 2>&1 sleep 2s echo -e "${idsCL[Green]}Done${idsCL[Default]}"