fixes to service. add moar footer

This commit is contained in:
Jon Lundy 2020-11-23 14:55:04 -07:00
parent 747c03b2d4
commit 280ce28fea
3 changed files with 16 additions and 15 deletions

View File

@ -1,36 +1,37 @@
NAME=sour.is-ipseity
NAME=sour.is-keyproofs
BUMP?=current
DATE:=$(shell date -u +%FT%TZ)
HASH:=$(shell git rev-pars HEAD 2> /dev/null)
VERSION:=$(shell BUMP=$(BUMP) ./version.sh)
build: $(NAME)
clean:
rm -f $(NAME)
version:
@echo $(VERSION)
tag:
git tag -a v$(VERSION) -m "Version: $(VERSION)"
release:
@make tag BUMP=patch
run:
go run -v \
-ldflags "\
-X main.AppVersion=$(VERSION) \
-X main.BuildHash=$(HASH) \
-X main.BuildDate=$(DATE) \
" \
.
-X main.BuildDate=$(DATE)" .
build:
$(NAME):
go build -v \
-o $(NAME) \
-ldflags "\
-X main.AppVersion=$(VERSION) \
-X main.BuildHash=$(HASH) \
-X main.BuildDate=$(DATE) \
" \
.
-X main.BuildDate=$(DATE)" .
install: build
install ./keyproofs /usr/local/bin
install ./sour.is-keyproofs.service /lib/systemd/system
install: $(NAME)
install ./$(NAME) /usr/local/bin
install ./$(NAME).service /lib/systemd/system
systemctl daemon-reload

View File

@ -173,7 +173,7 @@ var pageTPL = `
</div>
<div class="card-footer text-muted text-center">
&copy; 2020 Sour.is
&copy; 2020 Sour.is | <a href="/id/me@sour.is">About me</a> | <a href="https://github.com/sour-is/keyproofs">GitHub</a> | Inspired by <a href="https://keyoxide.org/">keyoxide</a>
</div>
</div>
</div>

View File

@ -6,7 +6,7 @@ After=syslog.target network.target
Type=simple
User=www-data
WorkingDirectory=/var/www
ExecStart=/usr/local/bin/keyproofs
ExecStart=/usr/local/bin/sour.is-keyproofs
Restart=always
RestartSec=30