From 8df02674c0b37a26b52a7f63c4a3e69df9c988c8 Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 10 Apr 2026 13:34:22 -0600 Subject: [PATCH] final initial fixes --- install.sh | 50 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/install.sh b/install.sh index 07aff0f..48cf5ae 100755 --- a/install.sh +++ b/install.sh @@ -8,11 +8,18 @@ print_logo() { ██╗ ██╗ █████╗ ███╗ ███╗██████╗ █████╗ ██████╗██╗ ██╗ ██║ ██║██╔══██╗████╗ ████║██╔══██╗██╔══██╗██╔════╝██║ ██╔╝ - ███████║███████║██╔████╔██║██████╔╝███████║██║ █████╔╝ - ██╔══██║██╔══██║██║╚██╔╝██║██╔═══╝ ██╔══██║██║ ██╔═██╗ + ███████║███████║██╔████╔██║██████╔╝███████║██║ █████╔╝ + ██╔══██║██╔══██║██║╚██╔╝██║██╔═══╝ ██╔══██║██║ ██╔═██╗ ██║ ██║██║ ██║██║ ╚═╝ ██║██║ ██║ ██║╚██████╗██║ ██╗ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ + ███████╗███████╗██████╗ ██╗ ██╗███████╗██████╗ + ██╔════╝██╔════╝██╔══██╗██║ ██║██╔════╝██╔══██╗ + ███████╗█████╗ ██████╔╝██║ ██║█████╗ ██████╔╝ + ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██╔══╝ ██╔══██╗ + ███████║███████╗██║ ██║ ╚████╔╝ ███████╗██║ ██║ + ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝ + EOF @@ -147,24 +154,31 @@ else echo "Cloudlog is already installed, skipping." fi +# Install Cockpit +if ! pacman -Qi cockpit &> /dev/null; then + echo "Installing Cockpit..." + sudo pacman -S --noconfirm cockpit + sudo systemctl enable --now cockpit.socket + echo "Cockpit installed. Access it at http://localhost:9090" +else + echo "Cockpit is already installed, skipping." +fi + # Install Compiled Servers echo "Installing compiled servers..." . install-compiled.sh -if ! ls /usr/lib/modules/$(uname -r) > /dev/null 2>&1; then - echo "HamPack is installed. A newer kernel has been installed, a reboot is recommended." - read -rp "Reboot now? [y/N] " response - case "$response" in - [yY][eE][sS]|[yY]) - echo "Rebooting..." - sudo reboot - ;; - *) - echo "Reboot skipped. Please remember to reboot when convenient." - exit 0 - ;; - esac -else - echo "Ham Pack is installed. Reboot when convenient." -fi \ No newline at end of file +echo "" +echo "HamPackServer is installed successfully!" +echo "" +read -rp "A reboot is required to complete setup. Reboot now? [y/N] " response +case "$response" in + [yY][eE][sS]|[yY]) + echo "Rebooting..." + sudo reboot + ;; + *) + echo "Reboot skipped. Please reboot when convenient." + ;; +esac \ No newline at end of file