mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
simplify timezone setting
This commit is contained in:
@@ -8,10 +8,7 @@ if [[ `whoami` == "root" ]]; then
|
|||||||
fi
|
fi
|
||||||
ROOT_SQL_PASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
|
ROOT_SQL_PASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
|
||||||
CURUSER=$(whoami)
|
CURUSER=$(whoami)
|
||||||
echo "Etc/UTC" | sudo tee -a /etc/timezone
|
sudo timedatectl set-timezone Etc/UTC
|
||||||
sudo rm -rf /etc/localtime
|
|
||||||
sudo ln -s /usr/share/zoneinfo/Zulu /etc/localtime
|
|
||||||
sudo dpkg-reconfigure -f noninteractive tzdata
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
|
||||||
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password $ROOT_SQL_PASS"
|
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password $ROOT_SQL_PASS"
|
||||||
|
|||||||
@@ -7,10 +7,7 @@ if [[ `whoami` == "root" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
CURUSER=$(whoami)
|
CURUSER=$(whoami)
|
||||||
echo "Etc/UTC" | sudo tee -a /etc/timezone
|
sudo timedatectl set-timezone Etc/UTC
|
||||||
sudo rm -rf /etc/localtime
|
|
||||||
sudo ln -s /usr/share/zoneinfo/Zulu /etc/localtime
|
|
||||||
sudo dpkg-reconfigure -f noninteractive tzdata
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install git python-virtualenv python3-virtualenv curl ntp build-essential screen cmake pkg-config libboost-all-dev libevent-dev libunbound-dev libminiupnpc-dev libunwind8-dev liblzma-dev libldns-dev libexpat1-dev libgtest-dev libzmq3-dev
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install git python-virtualenv python3-virtualenv curl ntp build-essential screen cmake pkg-config libboost-all-dev libevent-dev libunbound-dev libminiupnpc-dev libunwind8-dev liblzma-dev libldns-dev libexpat1-dev libgtest-dev libzmq3-dev
|
||||||
|
|||||||
Reference in New Issue
Block a user