Compare commits

..

4 commits

Author SHA1 Message Date
58386b0699
Stuff
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-06 12:53:19 +01:00
09d1959ce6
Stuff
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-06 12:44:00 +01:00
e7260b9412
main
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-06 12:29:46 +01:00
cd613e50ea
main
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-06 12:27:52 +01:00
3 changed files with 13 additions and 3 deletions

View file

@ -36,6 +36,8 @@ nfpms:
dst: /etc/gitea-page/nginx-config-template.txt.example
- src: data/info.txt
dst: /var/gite-page
- src: data/gitea-page.service
dst: /etc/systemd/system/gitea-page.service
scripts:
postinstall: "scripts/postinstall.sh"
changelog:

View file

@ -4,8 +4,8 @@ After=syslog.target
[Service]
Type=simple
User=gomailadmin
ExecStart=/usr/local/bin/gitea-page
User=root
ExecStart=/usr/bin/gitea-page
SyslogIdentifier=gitea-page
StandardOutput=syslog
StandardError=syslog

View file

@ -2,7 +2,15 @@
FILE=/etc/gitea-page/config.yml
if [ -f "$FILE" ]; then
systemctl daemon-reload
systemctl restart go-mail-admin
systemctl restart gitea-page
else
cp /etc/gitea-page/config.yml.example /etc/gitea-page/config.yml
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