This commit is contained in:
2026-01-19 13:17:06 +01:00
parent ea6d872a77
commit ac194fbfc4
7 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ Install the reverse proxy called nginx with a predefined configuration and with
# Replace secrets in ovh.ini
%{_bindir}/env envsubst < %{_sysconfdir}/certbot/ovh.ini > %{_sysconfdir}/certbot/.ovh.ini.new
if %{_bindir}/env cmp --silent %{_sysconfdir}/certbot/.ovh.ini.new %{_sysconfdir}/certbot/ovh.ini; then
%{_bindir}/env rm %{_sysconfdir/certbot/.ovh.ini.new
%{_bindir}/env rm %{_sysconfdir}/certbot/.ovh.ini.new
else
%{_bindir}/env mv %{_sysconfdir}/certbot/.ovh.ini.new %{_sysconfdir}/certbot/ovh.ini
%{_bindir}/env chmod 600 %{_sysconfdir}/certbot/ovh.ini
@@ -39,7 +39,7 @@ if [ ! -d "/opt/certbot" ]; then
fi
# Create certbot certificates
if [ ! -d "%{_sysconfdir}/letsencrypt/live/netoik.io" || ! -d "%{_sysconfdir}/letsencrypt/live/samuel-campos.fr" ]; then
if [ ! -d "%{_sysconfdir}/letsencrypt/live/netoik.io" ] || [ ! -d "%{_sysconfdir}/letsencrypt/live/samuel-campos.fr" ]; then
%{_bindir}/env certbot certonly --non-interactive --agree-tos --email "samuel.campos@netoik.io" --dns-ovh --dns-ovh-credentials "%{_sysconfdir}/certbot/ovh.ini" -d "*.netoik.io" -d "*.samuel-campos.fr"
fi