Kaynağa Gözat

add deployment hook

master
Gitea 5 yıl önce
ebeveyn
işleme
9402109619
2 değiştirilmiş dosya ile 20 ekleme ve 0 silme
  1. +20
    -0
      acmedns/etc/letsencrypt/renewal-hooks/deploy/e.superforex.com.au.sh
  2. +0
    -0
      acmedns/etc/letsencrypt/renewal-hooks/deploy/lawipac.com.sh

+ 20
- 0
acmedns/etc/letsencrypt/renewal-hooks/deploy/e.superforex.com.au.sh Dosyayı Görüntüle

@@ -0,0 +1,20 @@
#!/bin/bash


string="$RENEWED_DOMAINS"
if [[ $string == *"superforex.com.au"* ]]; then
echo "superforex.com.au is renewed"
else
exit
fi

#generate pfx key
openssl pkcs12 -export -out /etc/letsencrypt/live/superforex.com.au/superforex.com.au.pfx -inkey /etc/letsencrypt/live/superforex.com.au/privkey.pem -in /etc/letsencrypt/live/superforex.com.au/fullchain.pem -password pass:superNewCert

#copy key
scp /etc/letsencrypt/live/superforex.com.au/superforex.com.au.pfx root@e.superforex.com.au:/usr/tomcat7.0.54/conf/e.superforex.pfx
#copy key
scp /etc/letsencrypt/live/superforex.com.au/superforex.com.au.pfx root@e.superforex.com.au:/usr/tomcat7app/conf/e.superforex.pfx

#restart tomcat service
ssh root@e.superforex.com.au 'source /etc/profile && /usr/tomcat7.0.54/bin/shutdown.sh && /usr/tomcat7.0.54/bin/startup.sh && /usr/tomcat7app/bin/shutdown.sh && /usr/tomcat7app/bin/startup.sh '

acmedns/etc/letsencrypt/renewal-hooks/deploy/* → acmedns/etc/letsencrypt/renewal-hooks/deploy/lawipac.com.sh Dosyayı Görüntüle


Yükleniyor…
İptal
Kaydet