Last active
July 25, 2026 14:57
-
-
Save arkan/b743b48c58d250c224950608b771af76 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| echo Backing up the original file just in case ... | |
| cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js "/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.backup-$(date +'%d-%m-%Y-%H-%M-%S')" | |
| echo Patching ... | |
| sed -i.bak "s/.data.status.toLowerCase() !== 'active'/.data.status.toLowerCase() === 'active'/" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js | |
| # Restart PVE Web | |
| if [[ $(systemctl is-active pveproxy.service) = 'active' ]] | |
| then | |
| systemctl restart pveproxy.service | |
| fi | |
| echo Restarting ... | |
| if [[ $(systemctl is-active proxmox-backup-proxy.service) = 'active' ]] | |
| then | |
| systemctl restart proxmox-backup-proxy.service | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment