mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Update 99-database_clean.sh
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
#LOCATION=$(bashio::config 'data_location')
|
|
||||||
#if [[ "$LOCATION" = "null" || -z "$LOCATION" ]]; then LOCATION=/config/addons_config/${HOSTNAME#*-}; fi
|
|
||||||
|
|
||||||
#Set variable
|
#Set variable
|
||||||
db=/config/jellyfin/data/data/library.db
|
db=%%LOCATION%%/data/data/library.db
|
||||||
|
|
||||||
#Modify base
|
#Modify base
|
||||||
if [ -f $db ]; then
|
if [ -f $db ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user