remove mnt (#73)

This commit is contained in:
Pascal Vizeli
2017-05-18 17:59:04 +02:00
committed by GitHub
parent f082e157e7
commit 3e18c8c903
3 changed files with 3 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "Samba share", "name": "Samba share",
"version": "0.5", "version": "0.6",
"slug": "samba", "slug": "samba",
"description": "Expose HassIO folders with Samba", "description": "Expose HassIO folders with Samba",
"url": "https://home-assistant.io/addons/samba/", "url": "https://home-assistant.io/addons/samba/",
@@ -9,7 +9,7 @@
"ports": { "ports": {
"445/tcp": 445 "445/tcp": 445
}, },
"map": ["config:rw", "ssl:rw", "addons:rw", "share:rw", "mnt:rw"], "map": ["config:rw", "ssl:rw", "addons:rw", "share:rw"],
"options": { "options": {
"workgroup": "WORKGROUP", "workgroup": "WORKGROUP",
"guest": true, "guest": true,
@@ -17,7 +17,6 @@
"map_addons": true, "map_addons": true,
"map_ssl": false, "map_ssl": false,
"map_share": true, "map_share": true,
"map_mnt": false,
"username": "", "username": "",
"password": "" "password": ""
}, },
@@ -28,7 +27,6 @@
"map_addons": "bool", "map_addons": "bool",
"map_ssl": "bool", "map_ssl": "bool",
"map_share": "bool", "map_share": "bool",
"map_mnt": "bool",
"username": "str", "username": "str",
"password": "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_ADDONS=$(jq --raw-output ".map_addons // empty" $CONFIG_PATH)
MAP_SSL=$(jq --raw-output ".map_ssl // empty" $CONFIG_PATH) MAP_SSL=$(jq --raw-output ".map_ssl // empty" $CONFIG_PATH)
MAP_SHARE=$(jq --raw-output ".map_share // 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() { function write_config() {
@@ -47,9 +46,6 @@ fi
if [ "$MAP_SHARE" == "true" ]; then if [ "$MAP_SHARE" == "true" ]; then
write_config "share" write_config "share"
fi fi
if [ "$MAP_MNT" == "true" ]; then
write_config "mnt"
fi
## ##
# Set authentication options # Set authentication options

View File

@@ -9,7 +9,7 @@
"ports": { "ports": {
"22/tcp": 22 "22/tcp": 22
}, },
"map": ["config:rw", "ssl:rw", "addons:rw", "share:rw", "mnt:rw"], "map": ["config:rw", "ssl:rw", "addons:rw", "share:rw"],
"options": { "options": {
"authorized_keys": [null] "authorized_keys": [null]
}, },