diff --git a/deploy.sh b/deploy.sh
old mode 100644
new mode 100755
index 83bf8b2f968b330bfc9e6e93868bc2fa1b4d15dd..af0372aa5f978525ffe56edb1e7b1f721e5a7205
--- a/deploy.sh
+++ b/deploy.sh
@@ -5,3 +5,7 @@ then
     exit 1
 fi
 DIR=`dirname $0`
+# Update lcs-smb-config then run it to force max connections to 1
+awk 'BEGIN{PRINT=1;FOUND=0} /^[";]*$/{if(IN){IN=0;if(FOUND==0){print "\tmax connections = 1";FOUND=1}}} /^\[homes\]/{IN=1} /max connections/{if(IN){FOUND=1;PRINT=0; print "\tmax connections = 1"}} {if(PRINT){print $0};PRINT=1}' /usr/share/lcs/sbin/lcs-smb-config > /usr/share/lcs/sbin/lcs-smb-config.new
+cp /usr/share/lcs/sbin/lcs-smb-config.new /usr/share/lcs/sbin/lcs-smb-config
+/usr/share/lcs/sbin/lcs-smb-config