From 008f53fd907f4f5872ce43e0b55317222652b4b1 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Sun, 17 May 2026 09:41:23 +0900 Subject: [PATCH] gitea act_runner is now runner Rename all scripts to gitea-runner and remove all act_runner references. - rename all scripts - rename systemd service file Note that the older service needs to be remove and re-installed the /etc folder is now /etc/gitea-runner instead of /etc/act_runner --- ...-act_runner.sh => download-gitea-runner.sh | 0 init.sh | 12 +++++----- install-act_runner.sh | 24 ------------------- install-gitea-runner.sh | 24 +++++++++++++++++++ systemd/act_runner.service | 16 ------------- systemd/gitea-runner.service | 16 +++++++++++++ 6 files changed, 46 insertions(+), 46 deletions(-) rename download-act_runner.sh => download-gitea-runner.sh (100%) delete mode 100755 install-act_runner.sh create mode 100755 install-gitea-runner.sh delete mode 100644 systemd/act_runner.service create mode 100644 systemd/gitea-runner.service diff --git a/download-act_runner.sh b/download-gitea-runner.sh similarity index 100% rename from download-act_runner.sh rename to download-gitea-runner.sh diff --git a/init.sh b/init.sh index 2de490e..88bcc76 100644 --- a/init.sh +++ b/init.sh @@ -39,13 +39,13 @@ if [ ! -f "${target_file}" ]; then echo "[!] There is no gitea target file at ${target_file}. Is gitea installed?"; gitea_exists=0; fi; -target_file_act_runner="/usr/local/bin/act_runner"; -act_runner_exists=1 -if [ ! -f "${target_file_act_runner}" ]; then - echo "[!] There is no gitea action runner target file at ${target_file_act_runner}. Is gitea action runner installed?"; - act_runner_exists=0 +target_file_gitea_runner="/usr/local/bin/gitea-runner"; +gitea_runner_exists=1 +if [ ! -f "${target_file_gitea_runner}" ]; then + echo "[!] There is no gitea runner target file at ${target_file_gitea_runner}. Is gitea runner installed?"; + gitea_runner_exists=0 fi; -export arch target_file gitea_exists act_runner_exists; +export arch target_file gitea_exists gitea_runner_exists; # __END__ diff --git a/install-act_runner.sh b/install-act_runner.sh deleted file mode 100755 index 85117c8..0000000 --- a/install-act_runner.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/"; -# shellcheck source=init.sh -. "${BASE_FOLDER}init.sh"; - -if [ -z "${1}" ]; then - echo "Please give a Gitea Action Runner version to upgrade to"; - exit; -fi; -file_name="${download_folder}act_runner-${1}-${arch}.xz"; -if [ ! -f "${file_name}" ]; then - echo "Cannot find file: ${file_name}"; - exit; -fi; - -echo -e "Update gitea action runner to ${1} ... "; -systemctl stop act_runner; -xz -dc "${file_name}" > "${target_file_act_runner}"; -chmod +x "${target_file_act_runner}"; -systemctl start act_runner; -echo "[DONE]"; - -# __END__ diff --git a/install-gitea-runner.sh b/install-gitea-runner.sh new file mode 100755 index 0000000..bc15666 --- /dev/null +++ b/install-gitea-runner.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/"; +# shellcheck source=init.sh +. "${BASE_FOLDER}init.sh"; + +if [ -z "${1}" ]; then + echo "Please give a Gitea Runner version to upgrade to"; + exit; +fi; +file_name="${download_folder}gitea-runner-${1}-${arch}.xz"; +if [ ! -f "${file_name}" ]; then + echo "Cannot find file: ${file_name}"; + exit; +fi; + +echo -e "Update gitea runner to ${1} ... "; +systemctl stop gitea-runner; +xz -dc "${file_name}" > "${target_file_gitea_runner}"; +chmod +x "${target_file_gitea_runner}"; +systemctl start gitea-runner; +echo "[DONE]"; + +# __END__ diff --git a/systemd/act_runner.service b/systemd/act_runner.service deleted file mode 100644 index fc8a84e..0000000 --- a/systemd/act_runner.service +++ /dev/null @@ -1,16 +0,0 @@ -[Unit] -Description=Gitea Actions runner -Documentation=https://gitea.com/gitea/act_runner -After=docker.service - -[Service] -ExecStart=/usr/local/bin/act_runner daemon --config /etc/act_runner/config.yaml -ExecReload=/bin/kill -s HUP $MAINPID -WorkingDirectory=/var/lib/act_runner -TimeoutSec=0 -RestartSec=10 -Restart=always -User=act_runner - -[Install] -WantedBy=multi-user.target diff --git a/systemd/gitea-runner.service b/systemd/gitea-runner.service new file mode 100644 index 0000000..74a9666 --- /dev/null +++ b/systemd/gitea-runner.service @@ -0,0 +1,16 @@ +[Unit] +Description=Gitea Runner +Documentation=https://gitea.com/gitea/runner +After=docker.service + +[Service] +ExecStart=/usr/local/bin/gitea-runner daemon --config /etc/gitea-runner/config.yaml +ExecReload=/bin/kill -s HUP $MAINPID +WorkingDirectory=/var/lib/gitea-runner +TimeoutSec=0 +RestartSec=10 +Restart=always +User=gitea-runner + +[Install] +WantedBy=multi-user.target