Update 99-run.sh

This commit is contained in:
Alexandre
2023-05-22 22:51:18 +02:00
committed by GitHub
parent e5aa96d65e
commit 3717c4d915

View File

@@ -8,9 +8,9 @@
HOME="$(bashio::config "CONFIG_LOCATION")" HOME="$(bashio::config "CONFIG_LOCATION")"
HOME="$(dirname "$HOME")" HOME="$(dirname "$HOME")"
if [ ! -f "$HOME"/config.yaml ]; then if [ ! -f "$HOME"/config.yaml ]; then
# Copy default config.json # Copy default config.yaml
cp /templates/config.yaml "$HOME"/config.yaml cp /templates/config.yaml "$HOME"/config.yaml
chmod 777 "$HOME"/config.json chmod 777 "$HOME"/config.yaml
bashio::log.warning "A default config.yaml file was copied in $HOME. Please customize according to https://github.com/vogler/free-games-claimer/tree/main#configuration--options and restart the add-on" bashio::log.warning "A default config.yaml file was copied in $HOME. Please customize according to https://github.com/vogler/free-games-claimer/tree/main#configuration--options and restart the add-on"
sleep 5 sleep 5
bashio::exit.nok bashio::exit.nok