mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
15 lines
338 B
Bash
Executable File
15 lines
338 B
Bash
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
####################
|
|
# Migrate database #
|
|
####################
|
|
|
|
slug=guacamole
|
|
|
|
if [ -d /homeassistant/addons_config/"$slug" ] && [ ! -d /config/postgres ]; then
|
|
echo "Moving database to new location /config"
|
|
cp -rf /homeassistant/addons_config/"$slug"/* /config/
|
|
fi
|