also add users to docker group

master
lub 5 years ago
parent bf3a7f6114
commit 250fc894e2

@ -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

Loading…
Cancel
Save