Use pve-nag-buster

master
Cole Deck 2 years ago
parent e6f923a786
commit 48ca801e7e

23
i.sh

@ -110,18 +110,21 @@ echo "net.ipv4.tcp_timestamps=0" >> /etc/sysctl.conf
sysctl -p 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 # 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 #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
# pve-nag-buster
wget https://raw.githubusercontent.com/foundObjects/pve-nag-buster/master/install.sh
sudo bash install.sh
## Increase max user watches ## Increase max user watches
# BUG FIX : No space left on device # BUG FIX : No space left on device

Loading…
Cancel
Save