Update ha_setup.sh

This commit is contained in:
tteckster 2022-01-17 13:14:25 -05:00 committed by GitHub
parent e9b8de9944
commit 2ccec15dba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,8 +47,11 @@ cat >$DOCKER_CONFIG_PATH <<'EOF'
}
EOF
echo -e "${CHECKMARK} \e[1;92m Installing Docker.io... \e[0m"
apt-get install -y docker.io &>/dev/null
echo -e "${CHECKMARK} \e[1;92m Installing Docker... \e[0m"
sh <(curl -sSL https://get.docker.com) &>/dev/null
echo -e "${CHECKMARK} \e[1;92m Pulling Portainer Image...\e[0m"
docker pull docker.io/homeassistant/home-assistant:stable &>/dev/null
echo -e "${CHECKMARK} \e[1;92m Installing Portainer... \e[0m"
docker volume create portainer_data >/dev/null
@ -61,6 +64,9 @@ docker run -d \
-v portainer_data:/data \
portainer/portainer-ce:latest &>/dev/null
echo -e "${CHECKMARK} \e[1;92m Pulling Home Assistant Image...\e[0m"
docker pull docker.io/homeassistant/home-assistant:stable &>/dev/null
echo -e "${CHECKMARK} \e[1;92m Installing Home Assistant... \e[0m"
docker volume create hass_config >/dev/null
docker run -d \
@ -74,7 +80,7 @@ docker run -d \
--net=host \
homeassistant/home-assistant:stable &>/dev/null
echo -e "${CHECKMARK} \e[1;92m Customizing Container... \e[0m"
echo -e "${CHECKMARK} \e[1;92m Customizing LXC... \e[0m"
rm /etc/motd
rm /etc/update-motd.d/10-uname
touch ~/.hushlogin