Add update.sh
Should work out of the box, needs to be tested next release
This commit is contained in:
commit
ae839c5dce
1 changed files with 10 additions and 0 deletions
10
update.sh
Normal file
10
update.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
echo -n "Forgejo Tag to Download: "
|
||||
read version
|
||||
wget -O /root/forgejo https://codeberg.org/forgejo/forgejo/releases/tag/$version/forgejo-$version-linux-amd64
|
||||
systemctl stop forgejo
|
||||
cp /root/forgejo /usr/local/bin/forgejo
|
||||
chmod 755 /usr/local/bin/forgejo
|
||||
systemctl start forgejo
|
||||
rm /root/forgejo
|
||||
echo "Forgejo Updated succesfully!"
|
Loading…
Reference in a new issue