Add Makefile and systemd unit file.

This commit is contained in:
2021-04-19 21:26:55 -07:00
parent f9a19b2f80
commit e2573c28f8
2 changed files with 26 additions and 0 deletions

16
Makefile Normal file
View 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