samba.sh fix spacing / line wrap derp
This commit is contained in:
parent
b3b22c24a9
commit
daddc055e6
5
samba.sh
5
samba.sh
@ -39,8 +39,9 @@ import() { local name id file="${1}"
|
|||||||
# users) list of allowed users
|
# users) list of allowed users
|
||||||
# admins) list of admin users
|
# admins) list of admin users
|
||||||
# Return: result
|
# Return: result
|
||||||
share() { local share="$1" path="$2" browse=${3:-yes} ro=${4:-yes}\
|
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
|
sed -i "/\\[$share\\]/,/^\$/d" $file
|
||||||
echo "[$share]" >>$file
|
echo "[$share]" >>$file
|
||||||
echo " path = $path" >>$file
|
echo " path = $path" >>$file
|
||||||
|
Loading…
Reference in New Issue
Block a user