mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-14 12:12:14 +08:00
Updated Synology NAS Guide (markdown)
@@ -84,6 +84,7 @@ CERTDIR="AsDFgH"
|
|||||||
# do not change anything beyond this line!
|
# do not change anything beyond this line!
|
||||||
|
|
||||||
CERTROOTDIR="/usr/syno/etc/certificate"
|
CERTROOTDIR="/usr/syno/etc/certificate"
|
||||||
|
CERTROOTLOCALDIR="/usr/local/etc/certificate"
|
||||||
FULLCERTDIR="$CERTROOTDIR/_archive/$CERTDIR"
|
FULLCERTDIR="$CERTROOTDIR/_archive/$CERTDIR"
|
||||||
|
|
||||||
# find all subdirectories containing cert.pem files
|
# find all subdirectories containing cert.pem files
|
||||||
@@ -99,6 +100,15 @@ fi
|
|||||||
|
|
||||||
# reload
|
# reload
|
||||||
/usr/syno/sbin/synoservicectl --reload nginx
|
/usr/syno/sbin/synoservicectl --reload nginx
|
||||||
|
|
||||||
|
# update and restart all installed packages
|
||||||
|
PEMFILES=$(find $PACKAGECERTROOTDIR -name cert.pem)
|
||||||
|
if [ ! -z "$PEMFILES" ]; then
|
||||||
|
for DIR in $PEMFILES; do
|
||||||
|
rsync -avh "$FULLCERTDIR/" "$(dirname $DIR)/"
|
||||||
|
/usr/syno/bin/synopkg restart $(echo $DIR | awk -F/ '{print $6}')
|
||||||
|
done
|
||||||
|
fi
|
||||||
```
|
```
|
||||||
Now you should be all good.
|
Now you should be all good.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user