This commit is contained in:
Deni 2018-09-27 09:45:56 +02:00
parent 39b6202eca
commit 0aa6057611

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
VERSION=1.4.3 VERSION=1.5.1
DIR=/opt/gitea DIR=/opt/gitea
@ -96,7 +96,7 @@ echo -e "${Green} |___/${Color_Off} Git with a cup of tea"
echo echo
echo echo
echo -e "${UGreen}Update of gitea to ${VERSION} is in progress... ${Color_Off}" echo -e "${UGreen}Update of gitea to ${VERSION} is in progress...${Color_Off}"
echo echo
echo -e "DIR=$DIR \nARCH=$ARCH" echo -e "DIR=$DIR \nARCH=$ARCH"
@ -105,11 +105,11 @@ curl -s https://dl.gitea.io/gitea/ | grep '<a href=\"\.\/' | cut -d"/" -f2 | tai
if [ -f $DIR/bin/gitea-$VERSION-$ARCH ]; then if [ -f $DIR/bin/gitea-$VERSION-$ARCH ]; then
echo -e "\n${UGreen}Version ${VERSION} is already downloaded! ${Color_Off}\n" echo -e "\n${UGreen}Version ${VERSION} is already downloaded!${Color_Off}\n"
else else
echo -e "\n${UGreen}Newer version ${VERSION} is available! ${Color_Off}\n" echo -e "\n${UGreen}Newer version ${VERSION} is available!${Color_Off}\n"
echo -e "${UGreen}Downloading the newest version...${Color_Off}" echo -e "${UGreen}Downloading the newest version...${Color_Off}"
wget -N https://dl.gitea.io/gitea/$VERSION/gitea-$VERSION-$ARCH -P $DIR/bin/ wget -N https://dl.gitea.io/gitea/$VERSION/gitea-$VERSION-$ARCH -P $DIR/bin/