Tyleo-Scripts/runner/run-pbs-patch

11 lines
594 B
Text
Raw Normal View History

2024-02-18 18:06:30 +00:00
#!/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