Files
gitea-download/install.sh
Clemens Schwaighofer bfeef66b0b Add all files
2024-03-29 16:50:35 +09:00

14 lines
293 B
Bash
Executable File

#!/usr/bin/env bash
BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
. "${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__