added some color fixes, not finished

This commit is contained in:
Bachir Soussi Chiadmi
2018-04-07 12:59:00 +02:00
parent 21a121918e
commit 9b8670f4e4
5 changed files with 71 additions and 62 deletions

View File

@@ -5,7 +5,7 @@
# http://web-74.com/blog/reseaux/gerer-le-deploiement-facilement-avec-git/
#
echo '\033[35m
echo -e '\033[35m
____ __ _ _____
/ __ \___ / /_ (_)___ _____ / ___/___ ______ _____ _____
/ / / / _ \/ __ \/ / __ `/ __ \ \__ \/ _ \/ ___/ | / / _ \/ ___/
@@ -13,10 +13,10 @@ echo '\033[35m
/_____/\___/_.___/_/\__,_/_/ /_/ /____/\___/_/ |___/\___/_/
\033[0m'
echo "\033[35;1mThis script has been tested only on Linux Debian 9 \033[0m"
echo -e "\033[35;1mThis script has been tested only on Linux Debian 9 \033[0m"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
echo -e "Please run as root"
exit
fi
@@ -24,7 +24,7 @@ echo -n "Should we start? [Y|n] "
read yn
yn=${yn:-y}
if [ "$yn" != "y" ]; then
echo "aborting script!"
echo -e "aborting script!"
exit
fi
@@ -48,7 +48,7 @@ done
if [ "$securssh" = "yes" ]; then
. bin/ssh.sh
else
echo 'root user can still conect through ssh'
echo -e 'root user can still conect through ssh'
fi
@@ -58,7 +58,7 @@ yn=${yn:-y}
if [ "$yn" = "y" ]; then
. bin/ftp.sh
else
echo 'ftp server not installed'
echo -e 'ftp server not installed'
fi
while [ "$lemp" != "yes" ] && [ "$lemp" != "no" ]
@@ -69,7 +69,7 @@ done
if [ "$lemp" = "yes" ]; then
. bin/lemp.sh
else
echo 'lemp server not installed'
echo -e 'lemp server not installed'
fi
. bin/vhost.sh
@@ -77,7 +77,7 @@ fi
. bin/dotfiles.sh
. bin/autoupdate.sh
# echo '\033[35m
# echo -e '\033[35m
# ______________ _______
# /_ __/ ____/ |/ / __ \
# / / / __/ / /|_/ / /_/ /
@@ -107,7 +107,7 @@ fi
# mount -t tmpfs -o rw,noexec,nosuid tmpfs /tmp
# chmod 1777 /tmp
# echo "tmpfs /tmp tmpfs rw,noexec,nosuid 0 0" >> /etc/fstab
# echo -e "tmpfs /tmp tmpfs rw,noexec,nosuid 0 0" >> /etc/fstab
# # Restore /tmp
# cp -Rpf /tmpbackup/* /tmp/ >/dev/null 2>&1
@@ -140,11 +140,11 @@ fi
echo '\033[35m
echo -e '\033[35m
__
___ ____ ____/ /
/ _ \/ __ \/ __ /
/ __/ / / / /_/ /
\___/_/ /_/\__,_/
\033[0m'
echo "\033[35;1m* * script done * * \033[0m"
echo -e "\033[35;1m* * script done * * \033[0m"