Delete upgrade-gitea.sh
This commit is contained in:
1 parent
eac34be102
commit
0ad37a39f2
1 file changed
-20
@@ -1,20 +0,0 @@
|
||||
#!/bin/bash -ex
|
||||
GH_API=https://api.github.com/repos/go-gitea/gitea/releases/latest
|
||||
LATEST=$(curl -s $GH_API | grep -oP '"tag_name": "\K(.*)(?=")')
|
||||
GITEA_VERSION=${LATEST#v}
|
||||
FILENAME="gitea-${GITEA_VERSION}-linux-amd64"
|
||||
|
||||
wget "https://dl.gitea.io/gitea/${GITEA_VERSION}/${FILENAME}" "https://dl.gitea.io/gitea/${GITEA_VERSION}/${FILENAME}.asc"
|
||||
gpg --keyserver keys.openpgp.org --recv 7C9E68152594688862D62AF62D9AE806EC1592E2 # self-signed by Gitea.
|
||||
|
||||
gpg --verify "${FILENAME}.asc" "${FILENAME}"
|
||||
rm "${FILENAME}.asc"
|
||||
mv "${FILENAME}" /home/git/gitea
|
||||
|
||||
chmod +x /home/git/gitea
|
||||
chown git:git /home/git/gitea
|
||||
chown -R git:root /etc/gitea
|
||||
|
||||
service gitea restart
|
||||
service nginx restart
|
||||
service mysql restart
|
||||
Reference in new issue
Block a user