You've already forked gitea-ubuntu-multi
logic changes
This commit is contained in:
14
giteainstall
14
giteainstall
@@ -98,13 +98,6 @@ inputcheck () {
|
|||||||
#
|
#
|
||||||
clear
|
clear
|
||||||
|
|
||||||
#
|
|
||||||
# Check for the latest Gitea version
|
|
||||||
#
|
|
||||||
version=$(curl -s "https://dl.gitea.com/gitea/version.json" | grep -oP '"version"\s*:\s*"\K[^"]+')
|
|
||||||
if [[ -z "$version" ]]; then printf "Could not determine latest version. Falling back to version %s\n\n" "$fallbackversion" ; version="$fallbackversion" ; fi
|
|
||||||
printf "\nUsing Gitea version: %s\n" "$version"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Configure command line options (safe for set -u)
|
# Configure command line options (safe for set -u)
|
||||||
#
|
#
|
||||||
@@ -125,6 +118,13 @@ done
|
|||||||
|
|
||||||
inputcheck "$hostname" "$dbpass"
|
inputcheck "$hostname" "$dbpass"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check for the latest Gitea version
|
||||||
|
#
|
||||||
|
version=$(curl -s "https://dl.gitea.com/gitea/version.json" | grep -oP '"version"\s*:\s*"\K[^"]+')
|
||||||
|
if [[ -z "$version" ]]; then printf "Could not determine latest version. Falling back to version %s\n\n" "$fallbackversion" ; version="$fallbackversion" ; fi
|
||||||
|
printf "\nUsing Gitea version: %s\n" "$version"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check for existing Nginx host file with same domain
|
# Check for existing Nginx host file with same domain
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user