You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"username=$storageAccountName"| sudo tee "$smbCredentialFile"> /dev/null
@@ -62,15 +66,19 @@ if [ "${SHARED_STORAGE_ACCESS}" -eq 1 ]; then
62
66
# Change permissions on the credential file so only root can read or modify the password file.
63
67
sudo chmod 600 "$smbCredentialFile"
64
68
65
-
# Configure autofs
66
-
echo"$fileShareName -fstype=cifs,rw,dir_mode=0777,credentials=$smbCredentialFile :$smbPath"| sudo tee /etc/auto.fileshares > /dev/null
67
-
echo"$mntRoot /etc/auto.fileshares --timeout=60"| sudo tee /etc/auto.master > /dev/null
69
+
## Configure autofs
70
+
#echo "$fileShareName -fstype=cifs,rw,dir_mode=0777,file_mode=0777,uid=1000,gid=1000,credentials=$smbCredentialFile :$smbPath" | sudo tee /etc/auto.fileshares > /dev/null
71
+
#echo "$mntRoot /etc/auto.fileshares --timeout=60" | sudo tee /etc/auto.master > /dev/null
68
72
69
-
# Restart service to register changes
70
-
sudo systemctl restart autofs
73
+
## Restart service to register changes
74
+
#sudo systemctl restart autofs
71
75
72
-
# Autofs mounts when accessed for 60 seconds. Folder created for constant visible mount
73
-
sudo ln -s "$mntPath""/$fileShareName"
76
+
# # Autofs mounts when accessed for 60 seconds. Folder created for constant visible mount
77
+
# sudo ln -s "$mntPath" "/$fileShareName"
78
+
79
+
sudo mkdir -p $mntRoot
80
+
echo"$smbPath$mntRoot cifs rw,vers=default,dir_mode=0777,file_mode=0777,uid=1000,gid=1000,credentials=$smbCredentialFile 0 0"| sudo tee -a /etc/fstab >/dev/null
0 commit comments