Convert deployment to use fetch_and_deploy_gh_release function.

Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
This commit is contained in:
Jason Green 2025-06-27 08:07:25 -07:00 committed by GitHub
parent 996ad5aa0e
commit da932c0473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,10 +35,7 @@ function update_script() {
msg_ok "Services Stopped" msg_ok "Services Stopped"
msg_info "Updating ${APP} to v${RELEASE}" msg_info "Updating ${APP} to v${RELEASE}"
temp_file=$(mktemp) fetch_and_deploy_gh_release "scrappar" "thecfu/scraparr"
curl -fsSL "https://github.com/thecfu/scraparr/archive/refs/tags/v2.2.2.tar.gz" -o "$temp_file"
tar -zxf "$temp_file"
mv "scrappar-${RELEASE}" /opt/scrappar
pip -q install -r /opt/scrappar/src/scrappar/requirements.txt --root-user-action=ignore pip -q install -r /opt/scrappar/src/scrappar/requirements.txt --root-user-action=ignore
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"