mirror of
https://github.com/hassio-addons/addon-phlex.git
synced 2025-05-04 11:11:28 +00:00
14 lines
No EOL
488 B
Bash
14 lines
No EOL
488 B
Bash
#!/usr/bin/with-contenv bash
|
|
# ==============================================================================
|
|
# Community Hass.io Add-ons: Phlex
|
|
# Configures Phlex
|
|
# ==============================================================================
|
|
# shellcheck disable=SC1091
|
|
source /usr/lib/hassio-addons/base.sh
|
|
|
|
if ! hass.file_exists '/data/config.php'; then
|
|
cp /opt/default_config.php /data/config.php
|
|
fi
|
|
|
|
ln -sf /data/config.php /opt/rw/config.php
|
|
chown nginx:nginx /data/config.php |