mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Accept cookies files
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
],
|
],
|
||||||
"name": "Epic Games Free",
|
"name": "Epic Games Free",
|
||||||
"ports": {
|
"ports": {
|
||||||
"3000/tcp": 3001
|
"3000/tcp": 3000
|
||||||
},
|
},
|
||||||
"ports_description": {
|
"ports_description": {
|
||||||
"3000/tcp": "web interface"
|
"3000/tcp": "web interface"
|
||||||
|
|||||||
@@ -5,19 +5,22 @@
|
|||||||
# Initialize #
|
# Initialize #
|
||||||
##############
|
##############
|
||||||
|
|
||||||
# Copy default config.json
|
|
||||||
HOME="/config/addons_config/epicgamesfree"
|
HOME="/config/addons_config/epicgamesfree"
|
||||||
if [ ! -f "$HOME"/config.json ]; then
|
if [ ! -f "$HOME"/config.json ]; then
|
||||||
|
# Copy default config.json
|
||||||
cp /templates/config.json "$HOME"/config.json
|
cp /templates/config.json "$HOME"/config.json
|
||||||
chmod 777 "$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::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
|
bashio::exit.nok
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make symlink
|
# Make symlink for cookies
|
||||||
|
bashio::log.info "The following json files were found in $HOME and will be used in the app :"
|
||||||
if [ -f /usr/app/config/config.json ]; then rm /usr/app/config/config.json; fi
|
cd "$HOME" || true
|
||||||
ln -s "$HOME"/config.json /usr/app/config/config.json
|
for i in *.json; do # Whitespace-safe but not recursive.
|
||||||
|
echo "... processing $i"
|
||||||
|
ln -s $i /usr/app/config
|
||||||
|
done
|
||||||
|
|
||||||
##############
|
##############
|
||||||
# Launch App #
|
# Launch App #
|
||||||
|
|||||||
Reference in New Issue
Block a user