Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
58386b0699 | |||
09d1959ce6 |
2 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue