Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated upgrade script that is informing user that Gitea service has to be running in order to upgrade it #24260

Merged
merged 8 commits into from
Apr 25, 2023
11 changes: 11 additions & 0 deletions contrib/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
# upgrade.sh 1.15.10
# giteahome=/opt/gitea giteaconf=$giteahome/app.ini upgrade.sh



silverwind marked this conversation as resolved.
Show resolved Hide resolved
# Check if gitea service is running
if ! pidof gitea &> /dev/null; then
echo "Error: gitea is not running."
exit 1
fi

# Continue with rest of the script if gitea is running
echo "Gitea is running. Continuing with rest of script..."

# apply variables from environment
: "${giteabin:="/usr/local/bin/gitea"}"
: "${giteahome:="/var/lib/gitea"}"
Expand Down