mirror of
https://github.com/vernu/vps-audit.git
synced 2025-01-23 05:24:58 +03:00
Use proper shebang and use $HOSTNAME environment variable
This commit is contained in:
parent
463c0fe379
commit
4237982908
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Colors for output
|
||||
GREEN='\033[0;32m'
|
||||
@ -43,7 +43,7 @@ print_header "System Information"
|
||||
# Get system information
|
||||
OS_INFO=$(cat /etc/os-release | grep PRETTY_NAME | cut -d'"' -f2)
|
||||
KERNEL_VERSION=$(uname -r)
|
||||
HOSTNAME=$(hostname)
|
||||
HOSTNAME=$HOSTNAME
|
||||
UPTIME=$(uptime -p)
|
||||
UPTIME_SINCE=$(uptime -s)
|
||||
CPU_INFO=$(lscpu | grep "Model name" | cut -d':' -f2 | xargs)
|
||||
|
Loading…
Reference in New Issue
Block a user