fixes
This commit is contained in:
+1
@@ -9,6 +9,7 @@ fi
|
|||||||
isInFile=$(cat /home/akanealw/.ssh/config | grep -c "truenas")
|
isInFile=$(cat /home/akanealw/.ssh/config | grep -c "truenas")
|
||||||
if [ $isInFile -eq 0 ]
|
if [ $isInFile -eq 0 ]
|
||||||
then
|
then
|
||||||
|
echo "" >> /home/akanealw/.ssh/config
|
||||||
echo "Host truenas" >> /home/akanealw/.ssh/config
|
echo "Host truenas" >> /home/akanealw/.ssh/config
|
||||||
echo "Hostname 192.168.1.41" >> /home/akanealw/.ssh/config
|
echo "Hostname 192.168.1.41" >> /home/akanealw/.ssh/config
|
||||||
echo "Port 22" >> /home/akanealw/.ssh/config
|
echo "Port 22" >> /home/akanealw/.ssh/config
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ sudo rm /usr/local/bin/wrestic
|
|||||||
if [[ ! -f /etc/profile.d/mount-shared-drives.sh ]]
|
if [[ ! -f /etc/profile.d/mount-shared-drives.sh ]]
|
||||||
then
|
then
|
||||||
sudo umount /mnt/* -v
|
sudo umount /mnt/* -v
|
||||||
echo "Shared folders have been unmounted"
|
echo "Shared folders have been unmounted. Please remove uneccessary mount folders"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user