commit ae839c5dce492fd3eac088237d3a274a3b3f15e6 Author: Neshura Date: Tue Nov 7 10:18:51 2023 +0000 Add update.sh Should work out of the box, needs to be tested next release diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..b26b44a --- /dev/null +++ b/update.sh @@ -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!" \ No newline at end of file