mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-03 12:38:46 +02:00
Github bot : script beautyshied
This commit is contained in:
@@ -19,9 +19,9 @@ ln -s "$DATABASELOCATION"/influxdb /opt/scrutiny
|
|||||||
###############################
|
###############################
|
||||||
|
|
||||||
if [ -f /data/scrutiny.db ]; then
|
if [ -f /data/scrutiny.db ]; then
|
||||||
bashio::log.warning "Previous database detected, migration will start. Backup stored in /share/scrutiny.db.bak"
|
bashio::log.warning "Previous database detected, migration will start. Backup stored in /share/scrutiny.db.bak"
|
||||||
cp /data/scrutiny.db /share/scrutiny.db.bak
|
cp /data/scrutiny.db /share/scrutiny.db.bak
|
||||||
mv /data/scrutiny.db "$DATABASELOCATION"/config/
|
mv /data/scrutiny.db "$DATABASELOCATION"/config/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
######
|
######
|
||||||
@@ -30,9 +30,9 @@ fi
|
|||||||
|
|
||||||
# Align timezone with options
|
# Align timezone with options
|
||||||
if bashio::config.has_value "TZ"; then
|
if bashio::config.has_value "TZ"; then
|
||||||
TZ="$(bashio::config 'TZ')"
|
TZ="$(bashio::config 'TZ')"
|
||||||
bashio::log.info "Timezone : $TZ"
|
bashio::log.info "Timezone : $TZ"
|
||||||
sed -i "1a export TZ=$TZ" /etc/cont-init.d/10-timezone
|
sed -i "1a export TZ=$TZ" /etc/cont-init.d/10-timezone
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################
|
################
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ ln -s "$DATABASELOCATION"/influxdb /opt/scrutiny
|
|||||||
###############################
|
###############################
|
||||||
|
|
||||||
if [ -f /data/scrutiny.db ]; then
|
if [ -f /data/scrutiny.db ]; then
|
||||||
bashio::log.warning "Previous database detected, migration will start. Backup stored in /share/scrutiny.db.bak"
|
bashio::log.warning "Previous database detected, migration will start. Backup stored in /share/scrutiny.db.bak"
|
||||||
cp /data/scrutiny.db /share/scrutiny.db.bak
|
cp /data/scrutiny.db /share/scrutiny.db.bak
|
||||||
mv /data/scrutiny.db "$DATABASELOCATION"/config/
|
mv /data/scrutiny.db "$DATABASELOCATION"/config/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
######
|
######
|
||||||
@@ -36,9 +36,9 @@ fi
|
|||||||
|
|
||||||
# Align timezone with options
|
# Align timezone with options
|
||||||
if bashio::config.has_value "TZ"; then
|
if bashio::config.has_value "TZ"; then
|
||||||
TZ="$(bashio::config 'TZ')"
|
TZ="$(bashio::config 'TZ')"
|
||||||
bashio::log.info "Timezone : $TZ"
|
bashio::log.info "Timezone : $TZ"
|
||||||
sed -i "1a export TZ=$TZ" /etc/cont-init.d/10-timezone
|
sed -i "1a export TZ=$TZ" /etc/cont-init.d/10-timezone
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################
|
################
|
||||||
|
|||||||
Reference in New Issue
Block a user