|
|
@ -4,6 +4,7 @@ set -e
|
|
|
|
|
|
|
|
|
|
|
|
# config files
|
|
|
|
# config files
|
|
|
|
cp -a /hardware-setup/config/* /
|
|
|
|
cp -a /hardware-setup/config/* /
|
|
|
|
|
|
|
|
|
|
|
|
# update apt because sources.list.d is also in config/*
|
|
|
|
# update apt because sources.list.d is also in config/*
|
|
|
|
apt-get update
|
|
|
|
apt-get update
|
|
|
|
apt-get dist-upgrade
|
|
|
|
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
|
|
|
|
sed -i "s/%esp_uuid%/${esp_uuid}/" /etc/fstab
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Docker
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
apt-get -y install docker-ce
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### users
|
|
|
|
### users
|
|
|
|
|
|
|
|
|
|
|
|
apt-get -y install sudo
|
|
|
|
apt-get -y install sudo
|
|
|
@ -57,12 +63,9 @@ for key in /hardware-setup/authorized_keys/*; do
|
|
|
|
chown "$user": /home/"$user"/.ssh/authorized_keys
|
|
|
|
chown "$user": /home/"$user"/.ssh/authorized_keys
|
|
|
|
|
|
|
|
|
|
|
|
adduser "$user" sudo
|
|
|
|
adduser "$user" sudo
|
|
|
|
|
|
|
|
adduser "$user" docker
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
### Docker
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
apt-get -y install docker-ce
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### administration tools
|
|
|
|
### administration tools
|
|
|
|
|
|
|
|
|
|
|
|