This commit is contained in:
Romain PINSOLLE
2025-10-31 11:03:31 +00:00
parent 477ae6cb86
commit a44c9364ae
2 changed files with 9 additions and 25 deletions

View File

@@ -32,21 +32,18 @@ function update_script() {
fi
if check_for_gh_release "snowshare" "TuroYT/snowshare"; then
msg_info "Updating ${APP} to v${RELEASE}"
msg_info "Downloading ${APP}"
systemctl stop snowshare
cd /opt/
fetch_and_deploy_gh_release "snowshare" "TuroYT/snowshare"
cd /opt/snowshare
msg_ok "Downloaded ${APP}"
msg_info "Installing ${APP}"
npm ci
npx prisma generate
npm run build
systemctl start snowshare
msg_ok "Updated ${APP}"
exit
else
msg_ok "No update required. ${APP} is already at v${RELEASE}."
fi
exit
}