reload config on new webhook request

This commit is contained in:
2022-02-12 14:07:11 +00:00
parent cdd19d95e9
commit 8f0cf776b1
3 changed files with 49 additions and 14 deletions

View File

@@ -3,15 +3,17 @@ all: install
clean:
rm -rf gohookr
install:
go mod tidy
go build -o gohookr
install: build
cp gohookr /usr/local/bin/
cp gohookr.service /usr/lib/systemd/system/
cp -n config.json /etc/gohookr.json
systemctl daemon-reload
systemctl enable --now gohookr
build:
go mod tidy
go build -o gohookr
uninstall:
systemctl disable --now gohookr
rm -rf /usr/local/bin/gohookr /usr/lib/systemd/system/gohookr.service