Update apply.sh

Update Remove Proxmox Subscription Notice to support Changes in 6.2-12
This commit is contained in:
Stewart Bennell 2020-11-17 07:47:57 +11:00 committed by GitHub
parent fec2ebb198
commit 6c70b97b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ function pve_patch() {
echo "- apply patch..."
echo $FREE_REPO_LINE > $FREE_REPO_LIST
[ -f $ENTERPRISE_REPO_LIST ] && mv $ENTERPRISE_REPO_LIST $ENTERPRISE_REPO_LIST~
sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
#sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
cp --backup /usr/share/pve-patch/images/* /usr/share/pve-manager/images/
}