mirror of
https://github.com/linuxserver/docker-swag.git
synced 2025-02-22 23:49:55 -05:00
directadmin plugin updates
This commit is contained in:
parent
779c55fed6
commit
fef9273200
@ -65,6 +65,7 @@ sed -i 's|^certbot_dns_domeneshop:||g' /config/dns-conf/domeneshop.ini
|
|||||||
sed -i 's|^certbot_dns_inwx:||g' /config/dns-conf/inwx.ini
|
sed -i 's|^certbot_dns_inwx:||g' /config/dns-conf/inwx.ini
|
||||||
sed -i 's|^certbot_dns_transip:||g' /config/dns-conf/transip.ini
|
sed -i 's|^certbot_dns_transip:||g' /config/dns-conf/transip.ini
|
||||||
sed -i 's|^certbot_plugin_gandi:dns_|dns_gandi_|g' /config/dns-conf/gandi.ini
|
sed -i 's|^certbot_plugin_gandi:dns_|dns_gandi_|g' /config/dns-conf/gandi.ini
|
||||||
|
sed -i 's|^directadmin_|dns_directadmin_|g' /config/dns-conf/directadmin.ini
|
||||||
sed -i 's|^dns_cpanel_|cpanel_|g' /config/dns-conf/cpanel.ini
|
sed -i 's|^dns_cpanel_|cpanel_|g' /config/dns-conf/cpanel.ini
|
||||||
|
|
||||||
# update plugin names in renewal conf
|
# update plugin names in renewal conf
|
||||||
@ -76,6 +77,9 @@ if [[ -f "/config/etc/letsencrypt/renewal/${ORIGDOMAIN}.conf" ]] && [[ "${ORIGVA
|
|||||||
sed -i 's|^certbot_dns_cpanel:||g' "/config/etc/letsencrypt/renewal/${ORIGDOMAIN}.conf"
|
sed -i 's|^certbot_dns_cpanel:||g' "/config/etc/letsencrypt/renewal/${ORIGDOMAIN}.conf"
|
||||||
sed -i 's|^dns_cpanel_|cpanel_|g' "/config/etc/letsencrypt/renewal/${ORIGDOMAIN}.conf"
|
sed -i 's|^dns_cpanel_|cpanel_|g' "/config/etc/letsencrypt/renewal/${ORIGDOMAIN}.conf"
|
||||||
fi
|
fi
|
||||||
|
if [[ "${ORIGDNSPLUGIN}" =~ ^(directadmin)$ ]]; then
|
||||||
|
sed -i 's|^directadmin_|dns_directadmin_|g' "/config/etc/letsencrypt/renewal/${ORIGDOMAIN}.conf"
|
||||||
|
fi
|
||||||
if [[ "${ORIGDNSPLUGIN}" =~ ^(domeneshop)$ ]]; then
|
if [[ "${ORIGDNSPLUGIN}" =~ ^(domeneshop)$ ]]; then
|
||||||
sed -i 's|^certbot_dns_domeneshop:||g' "/config/etc/letsencrypt/renewal/${ORIGDOMAIN}.conf"
|
sed -i 's|^certbot_dns_domeneshop:||g' "/config/etc/letsencrypt/renewal/${ORIGDOMAIN}.conf"
|
||||||
fi
|
fi
|
||||||
@ -258,7 +262,7 @@ if [[ "${VALIDATION}" = "dns" ]]; then
|
|||||||
PROPAGATIONPARAM=""
|
PROPAGATIONPARAM=""
|
||||||
fi
|
fi
|
||||||
# plugins that use old parameter naming convention
|
# plugins that use old parameter naming convention
|
||||||
if [[ "${DNSPLUGIN}" =~ ^(cpanel|directadmin)$ ]]; then
|
if [[ "${DNSPLUGIN}" =~ ^(cpanel)$ ]]; then
|
||||||
AUTHENTICATORPARAM="--authenticator ${DNSPLUGIN}"
|
AUTHENTICATORPARAM="--authenticator ${DNSPLUGIN}"
|
||||||
DNSCREDENTIALSPARAM="--${DNSPLUGIN}-credentials ${DNSCREDENTIALFILE}"
|
DNSCREDENTIALSPARAM="--${DNSPLUGIN}-credentials ${DNSCREDENTIALFILE}"
|
||||||
if [[ -n "${PROPAGATION}" ]]; then PROPAGATIONPARAM="--${DNSPLUGIN}-propagation-seconds ${PROPAGATION}"; fi
|
if [[ -n "${PROPAGATION}" ]]; then PROPAGATIONPARAM="--${DNSPLUGIN}-propagation-seconds ${PROPAGATION}"; fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user