Github bot : script beautyshied

This commit is contained in:
github-actions
2022-08-28 00:17:11 +00:00
parent ac89519f00
commit e1c22bc63d
4 changed files with 16 additions and 16 deletions

View File

@@ -25,9 +25,9 @@ ln -s "$DATABASELOCATION"/influxdb /opt/scrutiny
###############################
if [ -f /data/scrutiny.db ]; then
bashio::log.warning "Previous database detected, migration will start. Backup stored in /share/scrutiny.db.bak"
cp /data/scrutiny.db /share/scrutiny.db.bak
mv /data/scrutiny.db "$DATABASELOCATION"/config/
bashio::log.warning "Previous database detected, migration will start. Backup stored in /share/scrutiny.db.bak"
cp /data/scrutiny.db /share/scrutiny.db.bak
mv /data/scrutiny.db "$DATABASELOCATION"/config/
fi
######
@@ -36,9 +36,9 @@ fi
# Align timezone with options
if bashio::config.has_value "TZ"; then
TZ="$(bashio::config 'TZ')"
bashio::log.info "Timezone : $TZ"
sed -i "1a export TZ=$TZ" /etc/cont-init.d/10-timezone
TZ="$(bashio::config 'TZ')"
bashio::log.info "Timezone : $TZ"
sed -i "1a export TZ=$TZ" /etc/cont-init.d/10-timezone
fi
################