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

@@ -1,13 +1,13 @@
#!/bin/sh
echo '\033[35m
echo -e '\033[35m
__ _______ __________
/ / / / ___// ____/ __ \
/ / / /\__ \/ __/ / /_/ /
/ /_/ /___/ / /___/ _, _/
\____//____/_____/_/ |_|
\033[0m'
echo "\033[35;1mCreate new user (you will be asked a user name and a password) \033[0m"
echo -e "\033[35;1mCreate new user (you will be asked a user name and a password) \033[0m"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
@@ -45,4 +45,4 @@ groupadd admin
usermod -a -G admin "$user"
# allow admin group to su
dpkg-statoverride --update --add root admin 4750 /bin/su
echo "\033[92;1muser $user configured\033[Om"
echo -e "\033[92;1muser $user configured\033[Om"