From 48ca801e7eafd4b999105f9a82240877ad9b9927 Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Mon, 29 Aug 2022 10:36:50 -0500 Subject: [PATCH] Use pve-nag-buster --- i.sh | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/i.sh b/i.sh index 6050caf..4995fb0 100644 --- a/i.sh +++ b/i.sh @@ -110,18 +110,21 @@ echo "net.ipv4.tcp_timestamps=0" >> /etc/sysctl.conf sysctl -p ## Remove subscription banner -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/res === null || res === undefined || !res/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js +#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/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 - cat <<'EOF' > /etc/cron.hourly/proxmox-nosub -#!/bin/sh +# cat <<'EOF' > /etc/cron.hourly/proxmox-nosub +##!/bin/sh # 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/res === null || res === undefined || !res/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js -EOF - chmod 755 /etc/cron.hourly/proxmox-nosub -fi +#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 +# chmod 755 /etc/cron.hourly/proxmox-nosub +#fi +# pve-nag-buster +wget https://raw.githubusercontent.com/foundObjects/pve-nag-buster/master/install.sh +sudo bash install.sh ## Increase max user watches # BUG FIX : No space left on device