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

@ -40,7 +40,8 @@ import() { local name id file="${1}"
# 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
guest=${5:-yes} users=${6:-""} admins=${7:-""} \
file=/etc/samba/smb.conf
sed -i "/\\[$share\\]/,/^\$/d" $file
echo "[$share]" >>$file
echo " path = $path" >>$file