From f9f929096c4d31b8b65950c346740caac1f42059 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 20 Dec 2024 16:52:35 +0100 Subject: update certificates deployment script --- certificates/certificates-deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'certificates/certificates-deploy.sh') diff --git a/certificates/certificates-deploy.sh b/certificates/certificates-deploy.sh index f431563..ceaa7f6 100644 --- a/certificates/certificates-deploy.sh +++ b/certificates/certificates-deploy.sh @@ -19,9 +19,12 @@ ssh ${SSHOPTS} root@yen.adyxax.org rcctl restart nginx #cp 'adyxax.org.crt' ~/git/adyxax/ansible/files/adyxax.org.fullchain #cp 'adyxax.org.key' ~/git/adyxax/ansible/files/adyxax.org.key # TODO ansible make run -scp ${SSHOPTS} "${KEY}" root@lore.adyxax.org:/usr/local/etc/nginx/adyxax.org.key -scp ${SSHOPTS} "${CRT}" root@lore.adyxax.org:/usr/local/etc/nginx/adyxax.org.fullchain +scp ${SSHOPTS} "${KEY}" root@lore.adyxax.org:/etc/nginx/adyxax.org.key +scp ${SSHOPTS} "${CRT}" root@lore.adyxax.org:/etc/nginx/adyxax.org.fullchain ssh ${SSHOPTS} root@lore.adyxax.org service nginx reload +scp ${SSHOPTS} "${KEY}" root@lore.adyxax.org:/etc/mail/adyxax.org.key +scp ${SSHOPTS} "${CRT}" root@lore.adyxax.org:/etc/mail/adyxax.org.fullchain +ssh ${SSHOPTS} root@lore.adyxax.org systemctl opensmtpd restart scp ${SSHOPTS} "${KEY}" root@kaladin.adyxax.org:/usr/local/etc/nginx/adyxax.org.key scp ${SSHOPTS} "${CRT}" root@kaladin.adyxax.org:/usr/local/etc/nginx/adyxax.org.fullchain ssh ${SSHOPTS} root@kaladin.adyxax.org service nginx reload -- cgit v1.2.3