mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 16:45:56 +02:00
Update 99-run.sh
This commit is contained in:
@@ -61,6 +61,7 @@ if [ -f "$DATABASESOURCE" ]; then
|
|||||||
bashio::log.info "Using database file found in $(dirname "${CONFIGSOURCE}")"
|
bashio::log.info "Using database file found in $(dirname "${CONFIGSOURCE}")"
|
||||||
else
|
else
|
||||||
# Create symlink for addon to create database
|
# Create symlink for addon to create database
|
||||||
|
mkdir -p "$(dirname "$DATABASESOURCE")"
|
||||||
touch "${DATABASESOURCE}"
|
touch "${DATABASESOURCE}"
|
||||||
ln -sf "$DATABASESOURCE" /data
|
ln -sf "$DATABASESOURCE" /data
|
||||||
rm "$DATABASESOURCE"
|
rm "$DATABASESOURCE"
|
||||||
|
|||||||
Reference in New Issue
Block a user