Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
|
58386b0699 | |
|
09d1959ce6 | |
|
e7260b9412 | |
|
cd613e50ea |
|
@ -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
|
||||||
|
- src: data/gitea-page.service
|
||||||
|
dst: /etc/systemd/system/gitea-page.service
|
||||||
scripts:
|
scripts:
|
||||||
postinstall: "scripts/postinstall.sh"
|
postinstall: "scripts/postinstall.sh"
|
||||||
changelog:
|
changelog:
|
||||||
|
|
|
@ -4,8 +4,8 @@ After=syslog.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=gomailadmin
|
User=root
|
||||||
ExecStart=/usr/local/bin/gitea-page
|
ExecStart=/usr/bin/gitea-page
|
||||||
SyslogIdentifier=gitea-page
|
SyslogIdentifier=gitea-page
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
StandardError=syslog
|
StandardError=syslog
|
||||||
|
|
|
@ -2,7 +2,15 @@
|
||||||
FILE=/etc/gitea-page/config.yml
|
FILE=/etc/gitea-page/config.yml
|
||||||
if [ -f "$FILE" ]; then
|
if [ -f "$FILE" ]; then
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart go-mail-admin
|
systemctl restart gitea-page
|
||||||
else
|
else
|
||||||
cp /etc/gitea-page/config.yml.example /etc/gitea-page/config.yml
|
cp /etc/gitea-page/config.yml.example /etc/gitea-page/config.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
FILE=/etc/gitea-page/nginx-config-template.txt.example
|
||||||
|
if [ -f "$FILE" ]; then
|
||||||
|
echo "Dont update config"
|
||||||
|
else
|
||||||
|
cp /etc/gitea-page/nginx-config-template.txt.example /etc/gitea-page/nginx-config-template.txt
|
||||||
|
fi
|
Loading…
Reference in New Issue