Files
gitea-download/install-act_runner.sh
T
Clemens Schwaighofer a58e0d8de5 Update gitea download and switch to xz files
XZ files are downloaded
Change that any grep is replaced by jq command, and sed for " replace

Add systemd service files as samples
2026-04-23 14:11:31 +09:00

25 lines
600 B
Bash
Executable File

#!/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__