service configuration files that needs to be saved just incase the server got lost someday by the cloud provider.
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- #!/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 "
|