Add Makefile and systemd unit file.
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
all:
|
||||
|
||||
update: refresh install
|
||||
sudo systemctl restart kas.service
|
||||
|
||||
refresh:
|
||||
git pull --rebase
|
||||
|
||||
install:
|
||||
go build .
|
||||
sudo mv kas /usr/local/bin/kas
|
||||
|
||||
setup:
|
||||
sudo install -m 0644 kas.service /etc/systemd/system/kas.service
|
||||
sudo install -d 0700 /etc/kas
|
||||
sudo install -m 0600 kas.yaml /etc/kas/kas.yaml
|
||||
Reference in New Issue
Block a user