Move install upgrades towards end of the installer since update of some kernel modules prevent docker daemon from starting if not rebooted first.

This commit is contained in:
Marco Ochse 2016-06-01 22:10:31 +02:00
parent bf7478442e
commit 00dd446f7d

View file

@ -160,8 +160,6 @@ EOF
# Let's pull some updates
fuECHO "### Pulling Updates."
apt-get update -y
fuECHO "### Installing Upgrades."
apt-get upgrade -y
# Let's install docker
fuECHO "### Installing docker-engine."
@ -361,6 +359,10 @@ ip = $myEXTIP
EOF
chown tpot:tpot /data/ews/conf/ews.ip
# Installing upgrades
fuECHO "### Installing Upgrades."
apt-get upgrade -y
# Final steps
fuECHO "### Thanks for your patience. Now rebooting."
mv /root/tpot/etc/rc.local /etc/rc.local && rm -rf /root/tpot/ && chage -d 0 tsec && sleep 2 && reboot