mirror of
https://github.com/alvierahman90/gohookr.git
synced 2024-11-21 22:49:53 +00:00
Create Makefile
This commit is contained in:
parent
294bd80cc7
commit
a2d4153c64
18
Makefile
Normal file
18
Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
all: install
|
||||
|
||||
clean:
|
||||
rm -rf gohookr
|
||||
|
||||
install:
|
||||
go mod tidy
|
||||
go build -o gohookr
|
||||
cp gohookr /usr/local/bin/
|
||||
cp gohookr.service /usr/lib/systemd/system/
|
||||
cp config.json /etc/gohookr.json
|
||||
systemctl daemon-reload
|
||||
systemctl enable --now gohookr
|
||||
|
||||
uninstall:
|
||||
systemctl disable --now gohookr
|
||||
rm -rf /usr/local/bin/gohookr /usr/lib/systemd/system/gohookr.service
|
||||
systemctl daemon-reload
|
@ -12,12 +12,7 @@ Check below for an example configuration.
|
||||
After you [install go](https://golang.org/doc/install):
|
||||
|
||||
```
|
||||
go mod tidy
|
||||
go build
|
||||
cp gohookr /usr/local/bin/
|
||||
cp gohookr.service /usr/lib/systemd/system/
|
||||
systemctl daemon-reload
|
||||
systemctl enable --now gohookr
|
||||
make
|
||||
```
|
||||
|
||||
## Signature Verification
|
||||
|
Loading…
Reference in New Issue
Block a user