Merge pull request #74 from home-assistant/build

remove mnt (#73)
This commit is contained in:
Pascal Vizeli
2017-05-18 18:02:40 +02:00
committed by GitHub
3 changed files with 3 additions and 9 deletions

View File

@@ -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/",
@@ -9,7 +9,7 @@
"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,
@@ -17,7 +17,6 @@
"map_addons": true,
"map_ssl": false,
"map_share": true,
"map_mnt": false,
"username": "",
"password": ""
},
@@ -28,7 +27,6 @@
"map_addons": "bool",
"map_ssl": "bool",
"map_share": "bool",
"map_mnt": "bool",
"username": "str",
"password": "str"
},

View File

@@ -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() {
@@ -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

View File

@@ -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]
},