diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-06-07 20:07:09 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-06-07 20:11:30 +0200 |
commit | 91db27900b3b410c69d8dec67fa473b2b72a1301 (patch) | |
tree | c433be498ac5b6564bed942f33ee7995df671970 | |
parent | 56cdc2321ed323665e831817dc25f7a34c195bbd (diff) | |
download | matterbridge-91db27900b3b410c69d8dec67fa473b2b72a1301.tar.gz matterbridge-91db27900b3b410c69d8dec67fa473b2b72a1301.tar.bz2 matterbridge-91db27900b3b410c69d8dec67fa473b2b72a1301.zip |
Makefile: Add sync target
Note that when running make sync, if matterbridge is running, it
can detect that the configuration file changed.
[...] level=info msg="Config file changed: /etc/matterbridge.toml" prefix=config
It seems to take into account at least some of the changes:
I had a typo in RemoteNickFormat. After fixing it and using
make sync, it started using the fixed RemoteNickFormat.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -.PHONY: all matterbridge.tar.xz +.PHONY: all matterbridge.tar.xz sync all: help @@ -23,5 +23,9 @@ matterbridge.tar.xz: matterbridge.service \ --transform='s/^/.\/etc\/systemd\/system\//' xz -9e -T 2 --verbose matterbridge.tar + matterbridge.toml: matterbridge.toml.example generate-matterbridge-config.py ./generate-matterbridge-config.py + +sync: matterbridge.toml + rsync matterbridge.toml root@git.replicant.us:/etc/ |