10 lines
349 B
Bash
10 lines
349 B
Bash
#!/bin/bash
|
|
echo -n "Forgejo Tag to Download: "
|
|
read version
|
|
wget -O /root/forgejo https://codeberg.org/forgejo/forgejo/releases/download/v$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!" |