sorted
This commit is contained in:
19
files/bashscripts/proxmox/remove-nag.sh
Executable file
19
files/bashscripts/proxmox/remove-nag.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
PVE=/usr/share/pve-manager/js/pvemanagerlib.js
|
||||
LIB=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
||||
PBS=/usr/share/javascript/proxmox-backup/js/proxmox-backup-gui.js
|
||||
|
||||
if [ -f $PVE ]; then
|
||||
# hide pve gui help/documentation button
|
||||
sed -i.bak "s/hidden: false/hidden: true/g" $PVE
|
||||
# fix proxmox widget toolkit lib
|
||||
sed -i.bak -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" $LIB
|
||||
systemctl restart pveproxy
|
||||
fi
|
||||
|
||||
if [ -f $PBS ]; then
|
||||
# fix proxmox widget toolkit lib
|
||||
sed -i.bak -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" $LIB
|
||||
# fix pbs gui
|
||||
sed -i.bak "s/let subStatus = status.toLowerCase() === 'active' ? 2 : 0/let subStatus = status.toLowerCase() === 'active' ? 2 : 2/" $PBS
|
||||
systemctl restart proxmox-backup-proxy
|
||||
fi
|
||||
Reference in New Issue
Block a user