diff --git a/adguard_home_custom/run.sh b/adguard_home_custom/run.sh new file mode 100644 index 0000000..f9c2871 --- /dev/null +++ b/adguard_home_custom/run.sh @@ -0,0 +1,17 @@ +#!/usr/bin/with-contenv bashio + +CONFIG_DIR="/addon_config/adguardhome" + +# Erstelle Verzeichnis falls nicht existent +if [ ! -d "$CONFIG_DIR" ]; then + mkdir -p "$CONFIG_DIR" +fi + +# Symlink für die Konfiguration setzen +ln -sfn "$CONFIG_DIR" /opt/adguardhome/conf + +echo "Starte AdGuard Home..." +/opt/adguardhome/AdGuardHome \ + -c /opt/adguardhome/conf/AdGuardHome.yaml \ + -w /opt/adguardhome/work \ + --no-check-update \ No newline at end of file