mirror of
https://github.com/vernu/vps-audit.git
synced 2025-02-02 16:23:53 +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
|
# Colors for output
|
||||||
GREEN='\033[0;32m'
|
GREEN='\033[0;32m'
|
||||||
@ -43,7 +43,7 @@ print_header "System Information"
|
|||||||
# Get system information
|
# Get system information
|
||||||
OS_INFO=$(cat /etc/os-release | grep PRETTY_NAME | cut -d'"' -f2)
|
OS_INFO=$(cat /etc/os-release | grep PRETTY_NAME | cut -d'"' -f2)
|
||||||
KERNEL_VERSION=$(uname -r)
|
KERNEL_VERSION=$(uname -r)
|
||||||
HOSTNAME=$(hostname)
|
HOSTNAME=$HOSTNAME
|
||||||
UPTIME=$(uptime -p)
|
UPTIME=$(uptime -p)
|
||||||
UPTIME_SINCE=$(uptime -s)
|
UPTIME_SINCE=$(uptime -s)
|
||||||
CPU_INFO=$(lscpu | grep "Model name" | cut -d':' -f2 | xargs)
|
CPU_INFO=$(lscpu | grep "Model name" | cut -d':' -f2 | xargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user