Improve language
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
# Script Updating Gitea (c) Thomas Kuschel
|
||||
# since 2024
|
||||
|
||||
echo "Update the Gitea from the website and restart Gitea Service"
|
||||
echo "Update the Gitea from the website and restart Gitea service"
|
||||
|
||||
website_latest="https://github.com/go-gitea/gitea/releases/latest"
|
||||
website_uri="https://dl.gitea.io/gitea"
|
||||
@ -24,15 +24,15 @@ fi
|
||||
version_active_raw=$( gitea --version )
|
||||
version_active=$( gitea --version | awk '{ print $3; exit }' )
|
||||
|
||||
echo "Website Version: ${version}"
|
||||
echo " Active Version: ${version_active}"
|
||||
echo "Website version: ${version}"
|
||||
echo " Active version: ${version_active}"
|
||||
|
||||
if [ "${version}" == "${version_active}" ]
|
||||
then
|
||||
echo "Both Version Strings are Equal."
|
||||
echo "Both version strings are the same."
|
||||
else
|
||||
echo "Both Version Strings are not Equal."
|
||||
echo "Start Updating..."
|
||||
echo "There are differnces between the two version strings."
|
||||
echo "Start updating..."
|
||||
read -p "Are you sure? (y/N)" -n 1 -r
|
||||
echo # (optional) move to a new line
|
||||
if [[ $REPLY =~ ^[YyJj]$ ]]
|
||||
@ -56,9 +56,7 @@ else
|
||||
fi
|
||||
# remove local files:
|
||||
rm gitea gitea.sha256
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
#echo active gitea version:
|
||||
@ -69,5 +67,5 @@ read -p "Restart the gitea service on the host? (y/N)" -n 1 -r
|
||||
if [[ $REPLY =~ ^[YyJj]$ ]]
|
||||
then
|
||||
sudo systemctl restart gitea.service
|
||||
echo "Restarted gitea.service"
|
||||
echo "gitea.service restarted."
|
||||
fi
|
||||
|
Reference in New Issue
Block a user