First commit

This commit is contained in:
Deni 2018-06-05 07:59:43 +02:00
commit 3b10933fd0
2 changed files with 23 additions and 0 deletions

0
README.md Normal file
View File

23
gitea-update.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
# dodaj argument $1 za verzijo in spremenljivko za arch (a to lahko iz sistema potegne?)
# Create a bin dir under your gitea install folder
VERSION=1.4.2
DIR=/opt/gitea
ARCH=linux-amd64
#darwin-10.6.386 darwin-10.6-amd64 linux-386 linux-arm-5,6,7,arm64,mips,mips64,mips64le
echo "Trying to download the newest version"
wget -N https://dl.gitea.io/gitea/$VERSION/gitea-$VERSION-$ARCH -P $DIR/bin/
echo "Creating symlinks"
ln -sfv $DIR/bin/gitea-$VERSION-$ARCH $DIR/gitea
echo "Fixing permissions"
chmod -v +x $DIR/bin/gitea-$VERSION-$ARCH
echo "Restarting service"
service gitea restart
service gitea status