Updated Synology NAS Guide (markdown)

Andreas Hahn 2017-09-22 22:05:28 +02:00
parent 68e94ef7e9
commit b4e1a93a64
1 changed files with 10 additions and 0 deletions

@ -84,6 +84,7 @@ CERTDIR="AsDFgH"
# do not change anything beyond this line!
CERTROOTDIR="/usr/syno/etc/certificate"
CERTROOTLOCALDIR="/usr/local/etc/certificate"
FULLCERTDIR="$CERTROOTDIR/_archive/$CERTDIR"
# find all subdirectories containing cert.pem files
@ -99,6 +100,15 @@ fi
# reload
/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.