summarylogtreecommitdiffstats
path: root/.INSTALL
diff options
context:
space:
mode:
authorTravis CI User2020-02-07 07:14:01 +0000
committerTravis CI User2020-02-07 07:14:01 +0000
commitab3cfcb147e4c01f8fe5593c08618c91c5789a0c (patch)
tree4f513cf7ea947acdcc81bd6ae06cd9ce31c16414 /.INSTALL
parent0f0725b965ff7559cbf1c5a482b481d029b96e8b (diff)
downloadaur-ab3cfcb147e4c01f8fe5593c08618c91c5789a0c.tar.gz
AUR
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"
}