Accept cookies files

This commit is contained in:
Alexandre
2022-07-21 15:18:17 +02:00
parent 974d3860b7
commit 43f61bfc88
2 changed files with 9 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
],
"name": "Epic Games Free",
"ports": {
"3000/tcp": 3001
"3000/tcp": 3000
},
"ports_description": {
"3000/tcp": "web interface"

View File

@@ -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 #