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
This commit is contained in:
Executable
+24
@@ -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__
|
||||
Reference in New Issue
Block a user