Skip to content

Commit

Permalink
remove mnt (home-assistant#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored May 18, 2017
1 parent f082e15 commit 3e18c8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 2 additions & 4 deletions samba/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Samba share",
"version": "0.5",
"version": "0.6",
"slug": "samba",
"description": "Expose HassIO folders with Samba",
"url": "https://home-assistant.io/addons/samba/",
Expand All @@ -9,15 +9,14 @@
"ports": {
"445/tcp": 445
},
"map": ["config:rw", "ssl:rw", "addons:rw", "share:rw", "mnt:rw"],
"map": ["config:rw", "ssl:rw", "addons:rw", "share:rw"],
"options": {
"workgroup": "WORKGROUP",
"guest": true,
"map_config": true,
"map_addons": true,
"map_ssl": false,
"map_share": true,
"map_mnt": false,
"username": "",
"password": ""
},
Expand All @@ -28,7 +27,6 @@
"map_addons": "bool",
"map_ssl": "bool",
"map_share": "bool",
"map_mnt": "bool",
"username": "str",
"password": "str"
},
Expand Down
4 changes: 0 additions & 4 deletions samba/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ MAP_CONFIG=$(jq --raw-output ".map_config // empty" $CONFIG_PATH)
MAP_ADDONS=$(jq --raw-output ".map_addons // empty" $CONFIG_PATH)
MAP_SSL=$(jq --raw-output ".map_ssl // empty" $CONFIG_PATH)
MAP_SHARE=$(jq --raw-output ".map_share // empty" $CONFIG_PATH)
MAP_MNT=$(jq --raw-output ".map_mnt // empty" $CONFIG_PATH)


function write_config() {
Expand Down Expand Up @@ -47,9 +46,6 @@ fi
if [ "$MAP_SHARE" == "true" ]; then
write_config "share"
fi
if [ "$MAP_MNT" == "true" ]; then
write_config "mnt"
fi

##
# Set authentication options
Expand Down
2 changes: 1 addition & 1 deletion ssh/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"ports": {
"22/tcp": 22
},
"map": ["config:rw", "ssl:rw", "addons:rw", "share:rw", "mnt:rw"],
"map": ["config:rw", "ssl:rw", "addons:rw", "share:rw"],
"options": {
"authorized_keys": [null]
},
Expand Down

0 comments on commit 3e18c8c

Please sign in to comment.