Correct the file to remove the subscription warning.

This commit is contained in:
gardouille 2017-02-14 08:47:06 +01:00
parent 06ea1fa5fc
commit 9ae34c659a
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
##### Changes
* Upgrade to the last pve-kernel: pve-kernel-4.4.16-2-pve
* Correct the file to remove the subscription warning.
---------------------------------------

View File

@ -28,8 +28,8 @@ class proxmox4::hypervisor::config {
# Remove the Subscription message
exec { 'remove_subscription_message':
command => 'rm -f /usr/share/pve-manager/ext6/pvemanagerlib.js.bak; sed -i".bak" -r -e "s/if \(data.status !== \'Active\'\) \{/if (false) {/" /usr/share/pve-manager/ext6/pvemanagerlib.js',
onlyif => 'grep "if (data.status !== \'Active\') {" /usr/share/pve-manager/ext6/pvemanagerlib.js',
command => 'rm -f /usr/share/pve-manager/js/pvemanagerlib.js.bak; sed -i".bak" -r -e "s/if \(data.status !== \'Active\'\) \{/if (false) {/" /usr/share/pve-manager/js/pvemanagerlib.js',
onlyif => 'grep "if (data.status !== \'Active\') {" /usr/share/pve-manager/js/pvemanagerlib.js',
}
}