From 301975e383499446135aec10dd172c165978708b Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 6 Mar 2025 22:52:55 +0100 Subject: [PATCH] Update --- scripts/customizable_post_install.sh | 1 + .../docs/post-install/customization/page.tsx | 67 +++++++++++-------- 2 files changed, 39 insertions(+), 29 deletions(-) diff --git a/scripts/customizable_post_install.sh b/scripts/customizable_post_install.sh index ad13ba7..416ca86 100644 --- a/scripts/customizable_post_install.sh +++ b/scripts/customizable_post_install.sh @@ -2450,6 +2450,7 @@ for index in "${!sorted_options[@]}"; do /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::='--force-confdef' autoclean >/dev/null 2>&1 msg_ok "$(translate "Cleanup finished")" msg_info2 "$(translate "You can reboot later manually.")" + exit 0 fi fi diff --git a/web/app/docs/post-install/customization/page.tsx b/web/app/docs/post-install/customization/page.tsx index 0accd84..b9d8a6a 100644 --- a/web/app/docs/post-install/customization/page.tsx +++ b/web/app/docs/post-install/customization/page.tsx @@ -1,6 +1,5 @@ import type { Metadata } from "next" import { Sliders } from "lucide-react" -import CopyableCode from "@/components/CopyableCode" export const metadata: Metadata = { title: "ProxMenux Post-Install: Customization Settings", @@ -46,7 +45,8 @@ export default function CustomizationSettingsPage() {

Customization Settings

- The Customization Settings section allows you to configure and personalize the Proxmox VE environment with specific adjustments. + The Customization Settings section allows you to configure and personalize the Proxmox VE + environment with specific adjustments.

@@ -54,19 +54,26 @@ export default function CustomizationSettingsPage() { Customize Bash Prompt and Aliases

- This option modifies the root user's .bashrc to enhance command-line usability by adding colorized prompts and useful aliases. + This option modifies the root user's .bashrc to enhance command-line usability by adding colorized + prompts and useful aliases.

What it does:

This adjustment automates the following commands:

- +
+          {`# Modify .bashrc for root
 cp /root/.bashrc /root/.bashrc.bak
 sed -i '/HISTTIMEFORMAT/d' /root/.bashrc
 sed -i '/PS1/d' /root/.bashrc
@@ -75,26 +82,24 @@ sed -i '/alias/d' /root/.bashrc
 echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> /root/.bashrc
 echo 'export PS1="\\u@\\h:\\W \\\$ "' >> /root/.bashrc
 echo "alias ll='ls -alF'" >> /root/.bashrc
-source /root/.bashrc
-        `}
-      />
+source /root/.bashrc`}
+        
+

Configure MOTD (Message of the Day)

-

- This option customizes the MOTD to display a ProxMenux optimization message upon login. -

+

This option customizes the MOTD to display a ProxMenux optimization message upon login.

This adjustment automates the following commands:

- +
+          {`# Backup original MOTD
 cp /etc/motd /etc/motd.bak
 
-echo "This system is optimized by: ProxMenux" | cat - /etc/motd > temp && mv temp /etc/motd
-        `}
-      />
+echo "This system is optimized by: ProxMenux" | cat - /etc/motd > temp && mv temp /etc/motd`}
+        
+

@@ -105,27 +110,31 @@ echo "This system is optimized by: ProxMenux" | cat - /etc/motd > temp && mv tem

What it does:

    -
  • Patches proxmoxlib.js to disable banner checks
  • +
  • + Patches proxmoxlib.js to disable banner checks +
  • Creates a cron job to ensure banner removal persists
  • Configures APT to prevent nagging messages

This adjustment automates the following commands:

- +
+          {`# Remove Proxmox subscription banner
 sed -i "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
 sed -i "s/checked_command: function(orig_cmd) {/checked_command: function() {} || function(orig_cmd) {/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
 
-echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\\.js$'; if [ $\? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!/\!/;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/xs-pve-no-nag
-        `}
-      />
+echo "DPkg::Post-Invoke { \\"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\\\\.js$'; if [ $\\? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\\!/\\!/;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\\"; };" > /etc/apt/apt.conf.d/xs-pve-no-nag`}
+        
+

Customization Application

- These customization settings are applied automatically when selected in the post-install process. Adjustments can be made manually as needed. + These customization settings are applied automatically when selected in the post-install process. Adjustments + can be made manually as needed.

) } +