10 lines
539 B
Bash
Executable File
10 lines
539 B
Bash
Executable File
#!/bin/bash
|
|
ZNC_CONFIG_LOCATION="/var/lib/containers/storage/volumes/znc/_data"
|
|
SSL_PATH="/var/lib/containers/storage/volumes/caddy_data/_data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/znc.zio.sh"
|
|
SSL_PATH="/root/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/wildcard_.zio.sh"
|
|
ZNCPEMBAK="$ZNC_CONFIG_LOCATION/configs/znc.pem.bak"
|
|
ZNCPEM="$ZNC_CONFIG_LOCATION/configs/znc.pem"
|
|
cp $ZNCPEM $ZNCPEMBAK
|
|
cat $SSL_PATH/wildcard_.zio.sh.key $SSL_PATH/wildcard_.zio.sh.crt > $ZNCPEM
|
|
echo "ZNC cert updated"
|