update smb_config to version 0.2

This commit is contained in:
Pascal Vizeli
2017-04-17 23:25:40 +02:00
parent 038bf0ff2b
commit 1e3dc26923
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "Samba Config",
"version": "0.1",
"version": "0.2",
"slug": "smb_config",
"description": "Expose config with samba",
"startup": "after",

View File

@@ -11,7 +11,7 @@ PASSWORD=$(jq --raw-output ".password // empty" $CONFIG_PATH)
sed -i "s/%%WORKGROUP%%/$WORKGROUP/g" /etc/smb.conf
if [ $GUEST == "true" ]; then
echo " group ok = yes" >> /etc/smb.conf
echo " guest ok = yes" >> /etc/smb.conf
echo " public = yes" >> /etc/smb.conf
else
echo " valid users = $USERNAME" >> /etc/smb.conf