Forgot to delete this script
This commit is contained in:
parent
c6eabfca8b
commit
35c67e9b29
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# ANSI color codes
|
|
||||||
GREEN='\033[0;32m'
|
|
||||||
NC='\033[0m' # No Color
|
|
||||||
|
|
||||||
# Get primary IP address (excluding docker/vm interfaces)
|
|
||||||
IP_ADDRESS=$(ip -4 addr show | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -v '^127\.' | head -n 1)
|
|
||||||
|
|
||||||
echo -e "${HOSTNAME} is now deployed at ${GREEN}${IP_ADDRESS}${NC}"
|
|
Loading…
Reference in New Issue
Block a user