Tyleo-Scripts/runner/run-pve-patch
2024-02-18 19:06:30 +01:00

11 lines
No EOL
582 B
Bash
Executable file

#!/usr/bin/env bash
clear
echo ========================================================================
echo ============= Proxmox Sub Message Killer ==== Tyleo Script =============
echo ========================================================================
echo = Patching...
echo == Restarting PVE Proxy...
# Patch du fichier JS
sed -i.bak "s/.data.status.toLowerCase() !== 'active') {/.data.status.toLowerCase() !== 'active') { orig_cmd\(\); } else if ( false ) {/" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
# Restart PVE Web
systemctl restart pveproxy.service