Move host configuration to setup script since Cloudron does not rely on it

Also hostname cannot be set here since admin_fqdn is not available on
initial setup
This commit is contained in:
Girish Ramakrishnan
2018-10-25 18:48:44 -07:00
parent 009e888686
commit 5cdf9d1c6f
2 changed files with 5 additions and 6 deletions

View File

@@ -206,6 +206,11 @@ if ! /bin/bash "${box_src_tmp_dir}/scripts/installer.sh" --data-file "${DATA_FIL
fi
rm "${DATA_FILE}"
echo "=> Configuring host"
sed -e 's/^#NTP=/NTP=0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org 3.ubuntu.pool.ntp.org/' -i /etc/systemd/timesyncd.conf
timedatectl set-ntp 1
timedatectl set-timezone UTC
echo -n "=> Waiting for cloudron to be ready (this takes some time) ..."
while true; do
echo -n "."