Update 'i.sh'
This commit is contained in:
parent
100c1e2fdb
commit
6b8f6ee806
4
i.sh
4
i.sh
@ -92,12 +92,12 @@ sysctl -p
|
||||
|
||||
## Remove subscription banner
|
||||
if [ -f "/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js" ] ; then
|
||||
sed -i "s/data.status !== 'Active'/false/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
|
||||
# create a hourly cron to make sure the banner does not re-appear
|
||||
cat <<'EOF' > /etc/cron.hourly/proxmox-nosub
|
||||
#!/bin/sh
|
||||
# eXtremeSHOK.com Remove subscription banner
|
||||
sed -i "s/data.status !== 'Active'/false/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
|
||||
EOF
|
||||
chmod 755 /etc/cron.hourly/proxmox-nosub
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user