From 250fc894e266520f79411f70bdd36609ee1b9e9c Mon Sep 17 00:00:00 2001 From: lub Date: Sat, 21 Dec 2019 10:23:14 +0100 Subject: [PATCH] also add users to docker group --- post-debootstrap-installer.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index cbd545d..da14406 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -4,6 +4,7 @@ set -e # config files cp -a /hardware-setup/config/* / + # update apt because sources.list.d is also in config/* apt-get update apt-get dist-upgrade @@ -43,6 +44,11 @@ esp_uuid=$(blkid --output value "/hardware-setup/hardware/${1}/esp" | head -n1) sed -i "s/%esp_uuid%/${esp_uuid}/" /etc/fstab +### Docker + +apt-get -y install docker-ce + + ### users apt-get -y install sudo @@ -57,12 +63,9 @@ for key in /hardware-setup/authorized_keys/*; do chown "$user": /home/"$user"/.ssh/authorized_keys adduser "$user" sudo + adduser "$user" docker done -### Docker - -apt-get -y install docker-ce - ### administration tools