fixed again where script finds gitea

This commit is contained in:
Miguel Muniz 2024-07-22 14:44:45 -07:00
parent f70df3d963
commit a0e6ba68fb
10 changed files with 629 additions and 2 deletions

View file

@ -56,7 +56,7 @@ function default_settings() {
function update_script() {
header_info
if [[ ! -f /etc/systemd/system/gitea.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
if [[ ! -f /usr/local/bin/gitea ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
RELEASE=$(wget -q https://github.com/go-gitea/gitea/releases/latest -O - | grep "title>Release" | cut -d " " -f 4)
VERSION=${RELEASE#v}
msg_info "Updating gitea to ${RELEASE}"