README.md example cleanup, now properly saves weechat variables if set to non-default values
This commit is contained in:
parent
362c5f2301
commit
847d339f81
@ -86,7 +86,7 @@ Then you can deploy now:
|
||||
```sh
|
||||
export DEPLOY_WEECHAT_PEM=~/.weechat/ssl/relay.pem
|
||||
export DEPLOY_WEECHAT_HOME=~/.weechat
|
||||
acme.sh --deploy -d weechat.example.com --deploy --deploy-hook weechat
|
||||
acme.sh -d weechat.example.com --deploy --deploy-hook weechat
|
||||
|
||||
Notes:
|
||||
* Run acme.sh under the same user as the weechat client
|
||||
|
||||
@ -36,10 +36,14 @@ weechat_deploy() {
|
||||
if [ -z "$DEPLOY_WEECHAT_HOME" ]; then
|
||||
_info "DEPLOY_WEECHAT_HOME not set, defaulting to ${HOME}/.weechat"
|
||||
DEPLOY_WEECHAT_HOME="${HOME}/.weechat"
|
||||
else
|
||||
_savedomainconf "DEPLOY_WEECHAT_HOME" "$DEPLOY_WEECHAT_HOME"
|
||||
fi
|
||||
if [ -z "$DEPLOY_WEECHAT_PEM" ]; then
|
||||
_info "DEPLOY_WEECHAT_PEM not set, defaulting to ${HOME}/.weechat/ssl/relay.pem"
|
||||
DEPLOY_WEECHAT_PEM="${HOME}/.weechat/ssl/relay.pem"
|
||||
else
|
||||
_savedomainconf "DEPLOY_WEECHAT_PEM" "$DEPLOY_WEECHAT_PEM"
|
||||
fi
|
||||
if [ -w "$DEPLOY_WEECHAT_PEM" ]; then
|
||||
_info "$DEPLOY_WEECHAT_PEM exists and is writable, backing up and overwriting"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user