summarylogtreecommitdiffstats
path: root/.INSTALL
diff options
context:
space:
mode:
Diffstat (limited to '.INSTALL')
-rw-r--r--.INSTALL36
1 files changed, 26 insertions, 10 deletions
diff --git a/.INSTALL b/.INSTALL
index ef6c1ce35c7..1edeb9630b9 100644
--- a/.INSTALL
+++ b/.INSTALL
@@ -5,11 +5,19 @@ post_install() {
systemctl daemon-reload
systemctl enable v2raya
systemctl start v2raya
- echo -e "\033[36m**************************************\033[0m"
- echo -e "\033[36m* Congratulations! *\033[0m"
- echo -e "\033[36m* HTTPS demo: https://v2raya.mzz.pub *\033[0m"
- echo -e "\033[36m* HTTP demo: http://v.mzz.pub *\033[0m"
- echo -e "\033[36m**************************************\033[0m"
+
+ ECHOLEN=$(echo -e|awk '{print length($0)}')
+ if [ ${ECHOLEN} = '0' ]
+ then
+ ECHO='echo -e'
+ else
+ ECHO='echo'
+ fi;
+ $ECHO "\033[36m**************************************\033[0m"
+ $ECHO "\033[36m* Congratulations! *\033[0m"
+ $ECHO "\033[36m* HTTPS demo: https://v2raya.mzz.pub *\033[0m"
+ $ECHO "\033[36m* HTTP demo: http://v.mzz.pub *\033[0m"
+ $ECHO "\033[36m**************************************\033[0m"
}
post_upgrade() {
@@ -18,11 +26,19 @@ post_upgrade() {
systemctl daemon-reload
systemctl restart v2raya
- echo -e "\033[36m**************************************\033[0m"
- echo -e "\033[36m* Congratulations! *\033[0m"
- echo -e "\033[36m* HTTPS demo: https://v2raya.mzz.pub *\033[0m"
- echo -e "\033[36m* HTTP demo: http://v.mzz.pub *\033[0m"
- echo -e "\033[36m**************************************\033[0m"
+
+ ECHOLEN=$(echo -e|awk '{print length($0)}')
+ if [ ${ECHOLEN} = '0' ]
+ then
+ ECHO='echo -e'
+ else
+ ECHO='echo'
+ fi;
+ $ECHO "\033[36m**************************************\033[0m"
+ $ECHO "\033[36m* Congratulations! *\033[0m"
+ $ECHO "\033[36m* HTTPS demo: https://v2raya.mzz.pub *\033[0m"
+ $ECHO "\033[36m* HTTP demo: http://v.mzz.pub *\033[0m"
+ $ECHO "\033[36m**************************************\033[0m"
}