simplify timezone setting

This commit is contained in:
Mine Coins
2017-10-24 22:07:27 +02:00
parent 7e528a4dd0
commit c2dac9b9bc
2 changed files with 2 additions and 8 deletions
+1 -4
View File
@@ -8,10 +8,7 @@ if [[ `whoami` == "root" ]]; then
fi
ROOT_SQL_PASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
CURUSER=$(whoami)
echo "Etc/UTC" | sudo tee -a /etc/timezone
sudo rm -rf /etc/localtime
sudo ln -s /usr/share/zoneinfo/Zulu /etc/localtime
sudo dpkg-reconfigure -f noninteractive tzdata
sudo timedatectl set-timezone Etc/UTC
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password $ROOT_SQL_PASS"