mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-18 20:10:31 +02:00
Change Config Logic
https://github.com/alexbelgium/hassio-addons/issues/597
This commit is contained in:
@@ -14,14 +14,6 @@ if [ ! -f "$HOME"/config.json ]; then
|
|||||||
bashio::exit.nok
|
bashio::exit.nok
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make symlink for cookies
|
|
||||||
bashio::log.info "The following json files were found in $HOME and will be used in the app. Changing those files will require to restart the addon."
|
|
||||||
cd "$HOME" || true
|
|
||||||
for i in *.json; do # Whitespace-safe but not recursive.
|
|
||||||
echo "... processing $i"
|
|
||||||
cp "$i" /usr/app/config
|
|
||||||
done
|
|
||||||
|
|
||||||
# Permissions
|
# Permissions
|
||||||
chmod -R 777 "$HOME"
|
chmod -R 777 "$HOME"
|
||||||
|
|
||||||
@@ -33,6 +25,4 @@ echo " "
|
|||||||
bashio::log.info "Starting the app"
|
bashio::log.info "Starting the app"
|
||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
cd /usr/app/config || true
|
cd "/usr/app/config" || true
|
||||||
|
|
||||||
#/./usr/local/bin/docker-entrypoint.sh
|
|
||||||
|
|||||||
Reference in New Issue
Block a user