Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a6fb133216 | |||
| fc6ce6f472 |
@@ -4,8 +4,8 @@ Documentation=https://gitea.com/gitea/act_runner
|
|||||||
After=gitea.service
|
After=gitea.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/act_runner daemon
|
ExecStart=act_runner daemon
|
||||||
ExecReload=/bin/kill -s HUP $MAINPID
|
ExecReload=kill -s HUP $MAINPID
|
||||||
WorkingDirectory=/var/lib/actrunner%i
|
WorkingDirectory=/var/lib/actrunner%i
|
||||||
TimeoutSec=0
|
TimeoutSec=0
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ User=gitea
|
|||||||
Group=gitea
|
Group=gitea
|
||||||
WorkingDirectory=/var/lib/gitea/
|
WorkingDirectory=/var/lib/gitea/
|
||||||
Environment=GITEA_WORK_DIR=/var/lib/gitea
|
Environment=GITEA_WORK_DIR=/var/lib/gitea
|
||||||
ExecStart=/usr/sbin/gitea_web_notify
|
ExecStart=gitea_web_notify
|
||||||
Restart=always
|
Restart=always
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,12 @@ done
|
|||||||
# Display commands and exit on error
|
# Display commands and exit on error
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
# Stop services
|
||||||
|
systemctl stop gitea.service
|
||||||
|
for i in $(seq 1 4); do
|
||||||
|
systemctl stop actrunner@$i
|
||||||
|
done
|
||||||
|
|
||||||
# If uninstalling, then delete users and db
|
# If uninstalling, then delete users and db
|
||||||
if [ $1 == 0 ]; then
|
if [ $1 == 0 ]; then
|
||||||
# Remove gitea user if existing
|
# Remove gitea user if existing
|
||||||
|
|||||||
Reference in New Issue
Block a user