|
|
@ -93,11 +93,13 @@ sysctl -p
|
|
|
|
## Remove subscription banner
|
|
|
|
## Remove subscription banner
|
|
|
|
if [ -f "/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js" ] ; then
|
|
|
|
if [ -f "/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js" ] ; then
|
|
|
|
sed -i "s/.data.status.toLowerCase() !== 'active'/.data.status.toLowerCase() == 'active'/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
|
|
|
sed -i "s/.data.status.toLowerCase() !== 'active'/.data.status.toLowerCase() == 'active'/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
|
|
|
|
|
|
|
sed -i "s/res === null || res === undefined || !res/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
|
|
|
# create a hourly cron to make sure the banner does not re-appear
|
|
|
|
# create a hourly cron to make sure the banner does not re-appear
|
|
|
|
cat <<'EOF' > /etc/cron.hourly/proxmox-nosub
|
|
|
|
cat <<'EOF' > /etc/cron.hourly/proxmox-nosub
|
|
|
|
#!/bin/sh
|
|
|
|
#!/bin/sh
|
|
|
|
# eXtremeSHOK.com Remove subscription banner
|
|
|
|
# eXtremeSHOK.com Remove subscription banner
|
|
|
|
sed -i "s/.data.status.toLowerCase() !== 'active'/.data.status.toLowerCase() == 'active'/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
|
|
|
sed -i "s/.data.status.toLowerCase() !== 'active'/.data.status.toLowerCase() == 'active'/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
|
|
|
|
|
|
|
sed -i "s/res === null || res === undefined || !res/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
chmod 755 /etc/cron.hourly/proxmox-nosub
|
|
|
|
chmod 755 /etc/cron.hourly/proxmox-nosub
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|