fixes to service. add moar footer
This commit is contained in:
parent
747c03b2d4
commit
280ce28fea
27
Makefile
27
Makefile
|
@ -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
|
||||
|
|
|
@ -173,7 +173,7 @@ var pageTPL = `
|
|||
</div>
|
||||
|
||||
<div class="card-footer text-muted text-center">
|
||||
© 2020 Sour.is
|
||||
© 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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user