mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 09:28:20 +01:00
Accept cookies files
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
],
|
||||
"name": "Epic Games Free",
|
||||
"ports": {
|
||||
"3000/tcp": 3001
|
||||
"3000/tcp": 3000
|
||||
},
|
||||
"ports_description": {
|
||||
"3000/tcp": "web interface"
|
||||
|
||||
@@ -5,19 +5,22 @@
|
||||
# Initialize #
|
||||
##############
|
||||
|
||||
# Copy default config.json
|
||||
HOME="/config/addons_config/epicgamesfree"
|
||||
if [ ! -f "$HOME"/config.json ]; then
|
||||
# Copy default config.json
|
||||
cp /templates/config.json "$HOME"/config.json
|
||||
chmod 777 "$HOME"/config.json
|
||||
bashio::log.warning "A default config.json file was copied in $HOME. Please customize according to https://github.com/claabs/epicgames-freegames-node#json-configuration before restarting the addon"
|
||||
bashio::exit.nok
|
||||
fi
|
||||
|
||||
# Make symlink
|
||||
|
||||
if [ -f /usr/app/config/config.json ]; then rm /usr/app/config/config.json; fi
|
||||
ln -s "$HOME"/config.json /usr/app/config/config.json
|
||||
# Make symlink for cookies
|
||||
bashio::log.info "The following json files were found in $HOME and will be used in the app :"
|
||||
cd "$HOME" || true
|
||||
for i in *.json; do # Whitespace-safe but not recursive.
|
||||
echo "... processing $i"
|
||||
ln -s $i /usr/app/config
|
||||
done
|
||||
|
||||
##############
|
||||
# Launch App #
|
||||
|
||||
Reference in New Issue
Block a user