add some colors

This commit is contained in:
Marco Ochse 2017-03-15 09:28:12 +00:00
parent 71e1069dbe
commit a94b34c8a8
2 changed files with 14 additions and 14 deletions

View file

@ -1,19 +1,19 @@

┌───────────────────────────────────────────────────┐
│ _____ ____ _ _ _____ ___ __ │
│|_ _| | _ \\ ___ | |_ / |___ / _ \\ / /_ │
│ | |_____| |_) / _ \\| __| | | / / | | | '_ \\ │
│ | |_____| __/ (_) | |_ | | / /| |_| | (_) |│
│ |_| |_| \\___/ \\__| |_|/_/(_)___/ \\___/ │
┌───────────────────────────────────────────────────┐
│ _____ ____ _ _ _____ ___ __ │
│|_ _| | _ \\ ___ | |_ / |___ / _ \\ / /_ │
│ | |_____| |_) / _ \\| __| | | / / | | | '_ \\ │
│ | |_____| __/ (_) | |_ | | / /| |_| | (_) |│
│ |_| |_| \\___/ \\__| |_|/_/(_)___/ \\___/ │
│ │
└───────────────────────────────────────────────────┘
└───────────────────────────────────────────────────┘
,---- [ \n ] [ \d ] [ \t ]
,---- [ \n ] [ \d ] [ \t ]
|
| IP:
| SSH:
| WEB:
| IP:
| SSH:
| WEB:
|
`----

View file

@ -3,9 +3,9 @@
source /etc/environment
myLOCALIP=$(hostname -I | awk '{ print $1 }')
myEXTIP=$(/usr/bin/myip.sh)
sed -i "s#IP:.*#IP: $myLOCALIP ($myEXTIP)#" /etc/issue
sed -i "s#SSH:.*#SSH: ssh -l tsec -p 64295 $myLOCALIP#" /etc/issue
sed -i "s#WEB:.*#WEB: https://$myLOCALIP:64297#" /etc/issue
sed -i "s#IP:.*#IP: $myLOCALIP ($myEXTIP)#" /etc/issue
sed -i "s#SSH:.*#SSH: ssh -l tsec -p 64295 $myLOCALIP#" /etc/issue
sed -i "s#WEB:.*#WEB: https://$myLOCALIP:64297#" /etc/issue
tee /data/ews/conf/ews.ip << EOF
[MAIN]
ip = $myEXTIP