fixed where the script looks for gitea.service

This commit is contained in:
Miguel Muniz 2024-07-22 13:11:06 -07:00
parent 86b5c8e9b5
commit dc1a6fce0a
5 changed files with 337 additions and 1 deletions

View file

@ -62,7 +62,7 @@ function default_settings() {
function update_script() {
header_info
if [[ ! -f /lib/systemd/system/gitea.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
if [[ ! -f /etc/systemd/system/gitea.service ]]; 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}"