# Calculate run=/bin/bash ini(overlay-calculate.revision)=>20191116.3,#-cut(0,-,#-cl_pass_file-#)-#&&grep(/var/lib/calculate/calculate.env,sr_samba_set\x20=\x20on)!=

#-ini(overlay-calculate.revision,#-cut(0,-,#-cl_pass_file-#)-#)-#

if grep "server min protocol" /etc/samba/smb.conf &>/dev/null
then
	sed -i 's/server min protocol.*/server min protocol = NT1/' /etc/samba/smb.conf
else
	sed -i '/\[global\]/a\\tserver min protocol = NT1' /etc/samba/smb.conf
fi

exit 0
