Debian Packages

This commit is contained in:
Kekskurse 2022-12-06 12:19:14 +01:00
parent 20ad03b7bb
commit ae93eaea96
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4
3 changed files with 27 additions and 1 deletions

View file

@ -23,7 +23,7 @@ nfpms:
id: "gitea-page"
package_name: "gitea-page"
homepage: "https://www.keks.cloud"
maintainer: "git@kes.cloud"
maintainer: "git@keks.cloud"
description: "Make something like github pages, that each project can have a branch wich a webpage can be delivered via a promote server (without docker things)."
formats:
- deb
@ -36,6 +36,8 @@ nfpms:
dst: /etc/gitea-page/nginx-config-template.txt.example
- src: data/info.txt
dst: /var/gite-page
scripts:
postinstall: "scripts/postinstall.sh"
changelog:
sort: asc
filters:

16
data/gitea-page.service Normal file
View file

@ -0,0 +1,16 @@
[Unit]
Description=Gitea PAge
After=syslog.target
[Service]
Type=simple
User=gomailadmin
ExecStart=/usr/local/bin/gitea-page
SyslogIdentifier=gitea-page
StandardOutput=syslog
StandardError=syslog
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target

8
scripts/postinstall.sh Normal file
View file

@ -0,0 +1,8 @@
#/bin/sh
FILE=/etc/gitea-page/config.yml
if [ -f "$FILE" ]; then
systemctl daemon-reload
systemctl restart go-mail-admin
else
cp /etc/gitea-page/config.yml.example /etc/gitea-page/config.yml
fi