mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-08-13 16:32:23 +00:00
Update remove-banner-pve8.sh
This commit is contained in:
parent
99ec64e852
commit
6e808ae35a
@ -28,17 +28,11 @@ remove_subscription_banner_pve8() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! whiptail --title "Proxmox Subscription Banner" \
|
|
||||||
--yesno "Do you want to remove the Proxmox subscription banner from the web interface?" 10 60; then
|
|
||||||
msg_warn "Banner removal cancelled by user."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
for f in /etc/apt/apt.conf.d/*nag*; do
|
for f in /etc/apt/apt.conf.d/*nag*; do
|
||||||
[[ -e "$f" ]] && rm -f "$f"
|
[[ -e "$f" ]] && rm -f "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
msg_info "Applying patches to remove subscription banner..."
|
|
||||||
|
|
||||||
sed -i "s/res\.data\.status\.toLowerCase() !== 'NoMoreNagging'/false/g" "$JS_FILE"
|
sed -i "s/res\.data\.status\.toLowerCase() !== 'NoMoreNagging'/false/g" "$JS_FILE"
|
||||||
sed -i "s/res\.data\.status\.toLowerCase() !== \"NoMoreNagging\"/false/g" "$JS_FILE"
|
sed -i "s/res\.data\.status\.toLowerCase() !== \"NoMoreNagging\"/false/g" "$JS_FILE"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user