service configuration files that needs to be saved just incase the server got lost someday by the cloud provider.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

e.superforex.com.au.sh 893B

1234567891011121314151617181920
  1. #!/bin/bash
  2. string="$RENEWED_DOMAINS"
  3. if [[ $string == *"superforex.com.au"* ]]; then
  4. echo "superforex.com.au is renewed"
  5. else
  6. exit
  7. fi
  8. #generate pfx key
  9. 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
  10. #copy key
  11. scp /etc/letsencrypt/live/superforex.com.au/superforex.com.au.pfx root@e.superforex.com.au:/usr/tomcat7.0.54/conf/e.superforex.pfx
  12. #copy key
  13. scp /etc/letsencrypt/live/superforex.com.au/superforex.com.au.pfx root@e.superforex.com.au:/usr/tomcat7app/conf/e.superforex.pfx
  14. #restart tomcat service
  15. 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 '