From 41c26e9048559775548e957b9676c4d586935701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= Date: Wed, 15 Jan 2025 18:47:01 +0100 Subject: [PATCH] Fix authelia conversion --- bin/convertdomain | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/convertdomain b/bin/convertdomain index b86bae2..3b3ca88 100755 --- a/bin/convertdomain +++ b/bin/convertdomain @@ -967,11 +967,10 @@ convert_authelia() { sed -i "s#$DOMAIN#$DOMAIN_NEW#g" /federated/apps/authelia/data/config/configuration.yml sed -i "s#$DOMAIN#$DOMAIN_NEW#g" /federated/apps/authelia/data/config/idproviders.yml - POWERDNS_CLIENT_SECRET=$(docker exec pdnsmysql mysql -uroot -p$MYSQL_ROOTPASSWORD $POWERDNS_DB -e "select value from setting where name='oidc_oauth_secret';" |tail -n1) - # Configure SSO to Authelia # Delete the entries in the pdns settings table [[ -d "/federated/apps/pdnsmysql/data/var/lib/mysql/pdnsadmin" ]] && POWERDNS_DB="pdnsadmin" || POWERDNS_DB="pdns" + POWERDNS_CLIENT_SECRET=$(docker exec pdnsmysql mysql -uroot -p$MYSQL_ROOTPASSWORD $POWERDNS_DB -e "select value from setting where name='oidc_oauth_secret';" |tail -n1) docker exec pdnsmysql mysql -uroot -p$MYSQL_ROOTPASSWORD $POWERDNS_DB -e "delete from setting where name like '%oidc_oauth%';" # Insert PowerDNS configuration because we need an initial