Rename runner download and install script files

This commit is contained in:
Clemens Schwaighofer
2026-08-18 12:29:39 +09:00
parent 008f53fd90
commit 0bb69d7168
2 changed files with 0 additions and 0 deletions
+24
View File
@@ -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__