Fix wget error

This commit is contained in:
Neshura 2023-11-27 07:39:04 +00:00
parent ae839c5dce
commit c964f186c0

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
echo -n "Forgejo Tag to Download: " echo -n "Forgejo Tag to Download: "
read version read version
wget -O /root/forgejo https://codeberg.org/forgejo/forgejo/releases/tag/$version/forgejo-$version-linux-amd64 wget -O /root/forgejo https://codeberg.org/forgejo/forgejo/releases/download/v$version/forgejo-$version-linux-amd64
systemctl stop forgejo systemctl stop forgejo
cp /root/forgejo /usr/local/bin/forgejo cp /root/forgejo /usr/local/bin/forgejo
chmod 755 /usr/local/bin/forgejo chmod 755 /usr/local/bin/forgejo