more changes

This commit is contained in:
Frank Alvarado 2024-06-10 22:21:49 -05:00
parent 4a73b31efc
commit 5a75542273
2 changed files with 14 additions and 15 deletions

View file

@ -59,10 +59,7 @@ if [[ ! -d /opt/mylar3 ]]; then msg_error "No ${APP} Installation Found!"; exit;
msg_info "Updating $APP"
systemctl stop mylar3.service
RELEASE=$(curl -s https://api.github.com/repos/mylar3/mylar3/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
tar zxvf <(curl -fsSL https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz) &>/dev/null
RELEASE="${RELEASE:1}"
\cp -r mylar3-${RELEASE}/* /opt/mylar3 &>/dev/null
rm -rf mylar3-${RELEASE}
tar zxvf <(curl -fsSL https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz) -C /opt/mylar3
cd /opt/mylar3
python3 -m pip install -r requirements.txt &>/dev/null
systemctl start mylar3.service