Debian Packages
This commit is contained in:
parent
20ad03b7bb
commit
ae93eaea96
3 changed files with 27 additions and 1 deletions
|
@ -23,7 +23,7 @@ nfpms:
|
||||||
id: "gitea-page"
|
id: "gitea-page"
|
||||||
package_name: "gitea-page"
|
package_name: "gitea-page"
|
||||||
homepage: "https://www.keks.cloud"
|
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)."
|
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:
|
formats:
|
||||||
- deb
|
- deb
|
||||||
|
@ -36,6 +36,8 @@ nfpms:
|
||||||
dst: /etc/gitea-page/nginx-config-template.txt.example
|
dst: /etc/gitea-page/nginx-config-template.txt.example
|
||||||
- src: data/info.txt
|
- src: data/info.txt
|
||||||
dst: /var/gite-page
|
dst: /var/gite-page
|
||||||
|
scripts:
|
||||||
|
postinstall: "scripts/postinstall.sh"
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
filters:
|
filters:
|
||||||
|
|
16
data/gitea-page.service
Normal file
16
data/gitea-page.service
Normal 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
8
scripts/postinstall.sh
Normal 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
|
Loading…
Reference in a new issue