service configuration files that needs to be saved just incase the server got lost someday by the cloud provider.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
-
- string="$RENEWED_DOMAINS"
- if [[ $string == *"lawipac.com"* ]]; then
- echo "lawipac.com is renewed"
- else
- echo "skip lawipac.com deploy hook"
- exit
- fi
-
- scp /etc/letsencrypt/live/lawipac.com/fullchain.pem root@lawipac.com:/etc/letsencrypt/live/lawipac.com/fullchain.pem
-
- scp /etc/letsencrypt/live/lawipac.com/privkey.pem root@lawipac.com:/etc/letsencrypt/live/lawipac.com/privkey.pem
-
- ssh root@lawipac.com "service apache2 reload"
-
- #replace synology DSM certificate automatically
- scp /etc/letsencrypt/live/lawipac.com/*.pem root@data:/usr/syno/etc/certificate/system/default/
-
- ssh root@data "/usr/syno/sbin/synoservice --reload nginx "
|