samba.sh fix spacing / line wrap derp
This commit is contained in:
parent
b3b22c24a9
commit
daddc055e6
3
samba.sh
3
samba.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user