Last active
February 28, 2018 10:17
-
-
Save lahma/7bbd5dcc23658a4499883b1afefa2602 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# $1 = Azure storage account name | |
# $2 = Azure storage account key | |
# $3 = Azure file share name | |
# $4 = mountpoint path | |
# For more details refer to https://azure.microsoft.com/en-us/documentation/articles/storage-how-to-use-files-linux/ | |
# update package lists | |
apt-get -y update | |
# install cifs-utils and mount file share | |
apt-get install cifs-utils | |
mkdir $4 | |
mount -t cifs //$1.file.core.windows.net/$3 $4 -o vers=3.0,username=$1,password=$2,dir_mode=0444,file_mode=0444 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment