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

11 lines
No EOL
594 B
Bash
Executable file

#!/usr/bin/env bash
clear
echo ========================================================================
echo ============= Proxmox Sub Message Killer ==== Tyleo Script =============
echo ========================================================================
echo = Patching...
echo == Restarting PBS 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 PBS Web
systemctl restart proxmox-backup-proxy.service