This commit is contained in:
Frank Alvarado 2024-06-10 23:14:00 -05:00
parent 55dceb7238
commit b4739ee3c3
2 changed files with 2 additions and 3 deletions

View file

@ -59,7 +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) -C /opt/mylar3
tar zxvf <(curl -fsSL https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz) -C /opt/mylar3 &>/dev/null
cd /opt/mylar3
python3 -m pip install -r requirements.txt &>/dev/null
systemctl start mylar3.service