From 0806fe45996b191fbca2c7f96bcc38b015c4534c Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 30 Nov 2025 18:04:50 +0000 Subject: [PATCH] Use actual hostname as default server name in installer Instead of hardcoded 'gLiTcH' as default, the installer now: - Runs 'hostname' command to get actual system hostname - Uses that as the default server name suggestion - Falls back to 'SERVER' if hostname cannot be detected This makes the installer truly generic and provides a sensible default that matches the actual system being configured. Example: OLD: Server name [gLiTcH]: NEW: Server name [bonsai-server]: --- installer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer.py b/installer.py index 744245f..4a6fa11 100755 --- a/installer.py +++ b/installer.py @@ -217,9 +217,9 @@ def configure_apache_php(webserver, distro): def get_config(): print(f"\n{CYAN}[2/8] Configuration...{RESET}") - - # Server name - default_name = "gLiTcH" + + # Server name - use actual hostname as default + default_name = run_cmd("hostname") or "SERVER" server_name = input(f" Server name [{default_name}]: ").strip() or default_name # Website path