mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
removed confs
This commit is contained in:
@@ -14,8 +14,7 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"certfile": "fullchain.pem",
|
"certfile": "fullchain.pem",
|
||||||
"keyfile": "privkey.pem",
|
"keyfile": "privkey.pem",
|
||||||
"ssl": false,
|
"ssl": false
|
||||||
"DOMAIN": "homeassistant.local"
|
|
||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"22/tcp": 2222,
|
"22/tcp": 2222,
|
||||||
@@ -28,13 +27,10 @@
|
|||||||
"schema": {
|
"schema": {
|
||||||
"certfile": "str",
|
"certfile": "str",
|
||||||
"keyfile": "str",
|
"keyfile": "str",
|
||||||
"ssl": "bool",
|
"ssl": "bool"
|
||||||
"APP_NAME": "str?",
|
|
||||||
"DOMAIN": "str",
|
|
||||||
"ROOT_URL": "str?"
|
|
||||||
},
|
},
|
||||||
"slug": "gitea",
|
"slug": "gitea",
|
||||||
"url": "https://github.com/baldarn/hassio-addons/tree/master/gitea",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/gitea",
|
||||||
"version": "1.17.2-1",
|
"version": "1.17.2-1",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:3000]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:3000]"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,21 +13,6 @@ fi
|
|||||||
|
|
||||||
sed -i "/HTTP_PORT/d" "$file"
|
sed -i "/HTTP_PORT/d" "$file"
|
||||||
sed -i "/server/a HTTP_PORT = $(bashio::addon.port 3000)" "$file"
|
sed -i "/server/a HTTP_PORT = $(bashio::addon.port 3000)" "$file"
|
||||||
|
|
||||||
##############
|
|
||||||
# OTHER CONF #
|
|
||||||
##############
|
|
||||||
|
|
||||||
for param in APP_NAME DOMAIN ROOT_URL; do
|
|
||||||
# Remove parameter
|
|
||||||
sed -i "/$param/d" "$file"
|
|
||||||
|
|
||||||
# Define parameter
|
|
||||||
if bashio::config.has_value "$param"; then
|
|
||||||
echo "parameter set : $param=$(bashio::config '$param')"
|
|
||||||
sed -i "/server/a $param = $(bashio::config '$param')" "$file"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
##############
|
##############
|
||||||
# SSL CONFIG #
|
# SSL CONFIG #
|
||||||
|
|||||||
Reference in New Issue
Block a user