Files
gitea-download/install.sh
Clemens Schwaighofer aca80a9775 Clean up shell code
2024-08-28 10:12:59 +09:00

15 lines
321 B
Bash
Executable File

#!/usr/bin/env bash
BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
# shellcheck source=init.sh
. "${BASE_FOLDER}init.sh";
echo -e "Update gitea to ${1} ... ";
systemctl stop gitea;
cp "${download_folder}gitea-${1}-${arch}" "${target_file}";
chmod +x "${target_file}";
systemctl start gitea;
echo "[DONE]";
# __END__