mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-04 21:18:46 +02:00
Update 20-folders.sh
This commit is contained in:
@@ -12,7 +12,7 @@ LOCATION=$(bashio::config 'data_location')
|
|||||||
|
|
||||||
if [[ "$LOCATION" = "null" || -z "$LOCATION" ]]; then
|
if [[ "$LOCATION" = "null" || -z "$LOCATION" ]]; then
|
||||||
# Default location
|
# Default location
|
||||||
LOCATION="/config/addons_config/calibre"
|
LOCATION="/config"
|
||||||
else
|
else
|
||||||
bashio::log.warning "Warning : a custom data location was selected, but the previous folder will NOT be copied. You need to do it manually"
|
bashio::log.warning "Warning : a custom data location was selected, but the previous folder will NOT be copied. You need to do it manually"
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ else
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ -z "$LOCATIONOK" ]; then
|
if [ -z "$LOCATIONOK" ]; then
|
||||||
LOCATION="/config/addons_config/calibre"
|
LOCATION="/config"
|
||||||
bashio::log.fatal "Your data_location value can only be set in /share, /config or /data (internal to addon). It will be reset to the default location : $LOCATION"
|
bashio::log.fatal "Your data_location value can only be set in /share, /config or /data (internal to addon). It will be reset to the default location : $LOCATION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user