From 2016e1369dffd8517da70902dfed5c1e47a0f17a Mon Sep 17 00:00:00 2001 From: David Personette Date: Mon, 23 Mar 2020 12:42:09 -0400 Subject: [PATCH] samba.sh fix #268 --- samba.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samba.sh b/samba.sh index d8fae41..4eb00da 100755 --- a/samba.sh +++ b/samba.sh @@ -128,7 +128,7 @@ share() { local share="$1" path="$2" browsable="${3:-yes}" ro="${4:-yes}" \ # none) # Return: result smb() { local file=/etc/samba/smb.conf - sed -i '/min protocol/d' $file + sed -i 's/\([^#]*min protocol *=\).*/\1 LANMAN1/' $file } ### user: add a user