added root check and needrestart check
This commit is contained in:
@@ -10,8 +10,15 @@ echo '\033[35m
|
||||
/_/ /_/_/____/\___/
|
||||
|
||||
\033[0m'
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
sleep 2
|
||||
apt-get --yes --force-yes install vim curl
|
||||
sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/g" /etc/locale.gen
|
||||
locale-gen
|
||||
apt-get --yes --force-yes install ntp
|
||||
dpkg-reconfigure tzdata
|
||||
apt-get --yes --force-yes install needrestart
|
||||
|
||||
Reference in New Issue
Block a user