diff --git a/baseimage/initializeBaseUbuntuImage.sh b/baseimage/initializeBaseUbuntuImage.sh index 671806a8c..099e526a8 100755 --- a/baseimage/initializeBaseUbuntuImage.sh +++ b/baseimage/initializeBaseUbuntuImage.sh @@ -30,6 +30,7 @@ debconf-set-selections <<< 'mysql-server mysql-server/root_password_again passwo ubuntu_version=$(lsb_release -rs) ubuntu_codename=$(lsb_release -cs) gpg_package=$([[ "${ubuntu_version}" == "16.04" ]] && echo "gnupg" || echo "gpg") +# mysql server is 5.7 in 16/18 and then 8.0 in 20 apt-get -y install \ acl \ build-essential \ @@ -43,7 +44,7 @@ apt-get -y install \ libpython2.7 \ linux-generic \ logrotate \ - mysql-server-5.7 \ + mysql-server \ openssh-server \ pwgen \ resolvconf \ @@ -87,9 +88,9 @@ mkdir -p /etc/systemd/system/docker.service.d echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=overlay2" > /etc/systemd/system/docker.service.d/cloudron.conf # there are 3 packages for docker - containerd, CLI and the daemon -curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/containerd.io_1.2.2-3_amd64.deb" -o /tmp/containerd.deb -curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce-cli_18.09.2~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker-ce-cli.deb -curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce_18.09.2~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker.deb +curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/containerd.io_1.2.13-2_amd64.deb" -o /tmp/containerd.deb +curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce-cli_19.03.9~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker-ce-cli.deb +curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce_19.03.9~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker.deb # apt install with install deps (as opposed to dpkg -i) apt install -y /tmp/containerd.deb /tmp/docker-ce-cli.deb /tmp/docker.deb rm /tmp/containerd.deb /tmp/docker-ce-cli.deb /tmp/docker.deb @@ -121,7 +122,7 @@ for image in ${images}; do done echo "==> Install collectd" -if ! apt-get install -y libcurl3-gnutls collectd collectd-utils; then +if ! apt-get install -y libcurl3-gnutls collectd-core; then # FQDNLookup is true in default debian config. The box code has a custom collectd.conf that fixes this echo "Failed to install collectd. Presumably because of http://mailman.verplant.org/pipermail/collectd/2015-March/006491.html" sed -e 's/^FQDNLookup true/FQDNLookup false/' -i /etc/collectd/collectd.conf diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index e32a36573..7a0c513b9 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -83,7 +83,7 @@ fi # Only --help works with mismatched ubuntu ubuntu_version=$(lsb_release -rs) -if [[ "${ubuntu_version}" != "16.04" && "${ubuntu_version}" != "18.04" ]]; then +if [[ "${ubuntu_version}" != "16.04" && "${ubuntu_version}" != "18.04" && "${ubuntu_version}" != "20.04" ]]; then echo "Cloudron requires Ubuntu 16.04 or 18.04" > /dev/stderr exit 1 fi diff --git a/scripts/installer.sh b/scripts/installer.sh index a98fc4681..6f4d7d889 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -27,11 +27,11 @@ echo "==> installer: Updating from $(cat $box_src_dir/VERSION) to $(cat $box_src echo "==> installer: updating docker" -if [[ $(docker version --format {{.Client.Version}}) != "18.09.2" ]]; then +if [[ $(docker version --format {{.Client.Version}}) != "19.03.9" ]]; then # there are 3 packages for docker - containerd, CLI and the daemon - $curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/containerd.io_1.2.2-3_amd64.deb" -o /tmp/containerd.deb - $curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce-cli_18.09.2~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker-ce-cli.deb - $curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce_18.09.2~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker.deb + $curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/containerd.io_1.2.13-2_amd64.deb" -o /tmp/containerd.deb + $curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce-cli_19.03.9~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker-ce-cli.deb + $curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce_19.03.9~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker.deb echo "==> installer: Waiting for all dpkg tasks to finish..." while fuser /var/lib/dpkg/lock; do