mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-19 11:31:11 +02:00
new example for updating weechat ssl
@@ -0,0 +1,12 @@
|
|||||||
|
Example hook snipped to combine key and cert into weechat's relay.pem file and notify weechat to reload the file
|
||||||
|
|
||||||
|
```shell
|
||||||
|
IRC_DOMAIN="irc.example.com"
|
||||||
|
IRC_USER="username"
|
||||||
|
|
||||||
|
if [[ $DOMAIN == $IRC_DOMAIN]]; then
|
||||||
|
[ -f $CERTFILE ] && [ -f $KEYFILE ] && \
|
||||||
|
cat $CERTFILE $KEYFILE >/home/${IRC_USER}/.weechat/ssl/relay.pem
|
||||||
|
[ -p /home/${IRC_USER}/.weechat/weechat_fifo ] && echo '*/relay sslcertkey' >/home/${IRC_USER}/.weechat/weechat_fifo
|
||||||
|
fi
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user