008f53fd90
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
25 lines
596 B
Bash
Executable File
25 lines
596 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 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__
|