From a94b34c8a86877e99cf4e2c9e233ca8c468fa534 Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Wed, 15 Mar 2017 09:28:12 +0000 Subject: [PATCH] add some colors --- installer/etc/issue | 22 +++++++++++----------- installer/etc/rc.local | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/installer/etc/issue b/installer/etc/issue index 10eee222..797e2586 100644 --- a/installer/etc/issue +++ b/installer/etc/issue @@ -1,19 +1,19 @@  -┌───────────────────────────────────────────────────┐ -│ _____ ____ _ _ _____ ___ __ │ -│|_ _| | _ \\ ___ | |_ / |___ / _ \\ / /_ │ -│ | |_____| |_) / _ \\| __| | | / / | | | '_ \\ │ -│ | |_____| __/ (_) | |_ | | / /| |_| | (_) |│ -│ |_| |_| \\___/ \\__| |_|/_/(_)___/ \\___/ │ +┌───────────────────────────────────────────────────┐ +│ _____ ____ _ _ _____ ___ __ │ +│|_ _| | _ \\ ___ | |_ / |___ / _ \\ / /_ │ +│ | |_____| |_) / _ \\| __| | | / / | | | '_ \\ │ +│ | |_____| __/ (_) | |_ | | / /| |_| | (_) |│ +│ |_| |_| \\___/ \\__| |_|/_/(_)___/ \\___/ │ │ │ -└───────────────────────────────────────────────────┘ +└───────────────────────────────────────────────────┘ -,---- [ \n ] [ \d ] [ \t ] +,---- [ \n ] [ \d ] [ \t ] | -| IP: -| SSH: -| WEB: +| IP: +| SSH: +| WEB: | `---- diff --git a/installer/etc/rc.local b/installer/etc/rc.local index 166a9ae5..e0fd5a42 100755 --- a/installer/etc/rc.local +++ b/installer/etc/rc.local @@ -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