mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-06 07:49:17 +00:00
Update paymenter.sh
Add line to update version file
This commit is contained in:
parent
d2b2ffa3d5
commit
5ccff2a5b6
@ -36,6 +36,7 @@ function update_script() {
|
||||
RELEASE=$(curl -s https://api.github.com/repos/paymenter/paymenter/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')
|
||||
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
||||
msg_info "Updating ${APP} to ${RELEASE}"
|
||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||
cd /opt/paymenter
|
||||
php artisan p:upgrade --no-interaction &>/dev/null
|
||||
msg_ok "Updated Successfully"
|
||||
|
Loading…
Reference in New Issue
Block a user