diff --git a/services/documentation/zensical.md b/services/documentation/zensical.md index c46316d..cbf8d31 100644 --- a/services/documentation/zensical.md +++ b/services/documentation/zensical.md @@ -214,6 +214,14 @@ sudo useradd --system --create-home --home /var/lib/gitea_runner --shell /usr/sb # Allow the runner to write documentation changes sudo usermod -aG zensical gitearunner +# Allow the runner to start and stop Zensical Watchdog Service +sudo tee /etc/sudoers.d/gitearunner-systemctl > /dev/null <<'EOF' +gitearunner ALL=NOPASSWD: /usr/bin/systemctl start zensical-watchdog.service, /usr/bin/systemctl stop zensical-watchdog.service +EOF +sudo chmod 440 /etc/sudoers.d/gitearunner-systemctl +sudo chown root:root /etc/sudoers.d/gitearunner-systemctl +sudo visudo -c + # Download Newest Gitea Runner Binary (https://gitea.com/gitea/act_runner/releases) cd /tmp wget https://gitea.com/gitea/act_runner/releases/download/v0.2.13/act_runner-0.2.13-linux-amd64