samba.sh fix spacing / line wrap derp

This commit is contained in:
David Personette 2016-01-05 06:48:01 -05:00
parent b3b22c24a9
commit daddc055e6

View File

@ -39,8 +39,9 @@ import() { local name id file="${1}"
# users) list of allowed users
# admins) list of admin users
# Return: result
share() { local share="$1" path="$2" browse=${3:-yes} ro=${4:-yes}\
guest=${5:-yes} users=${6:-""} admins=${7:-"none"} file=/etc/samba/smb.conf
share() { local share="$1" path="$2" browse=${3:-yes} ro=${4:-yes} \
guest=${5:-yes} users=${6:-""} admins=${7:-""} \
file=/etc/samba/smb.conf
sed -i "/\\[$share\\]/,/^\$/d" $file
echo "[$share]" >>$file
echo " path = $path" >>$file