Update podman_ha_setup.sh
This commit is contained in:
parent
f2aaf067fc
commit
e1915dff84
1 changed files with 23 additions and 26 deletions
|
@ -64,13 +64,6 @@ echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Installing Podman... "
|
echo -en "${GN} Installing Podman... "
|
||||||
apt-get -y install podman &>/dev/null
|
apt-get -y install podman &>/dev/null
|
||||||
REG=/etc/containers/registries.conf
|
|
||||||
cat << EOF > $REG
|
|
||||||
[registries.insecure]
|
|
||||||
registries = [ ]
|
|
||||||
[registries.block]
|
|
||||||
registries = [ ]
|
|
||||||
EOF
|
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Pulling Yacht Image... "
|
echo -en "${GN} Pulling Yacht Image... "
|
||||||
|
@ -80,30 +73,34 @@ echo -e "${CM}${CL} \r"
|
||||||
echo -en "${GN} Installing Yacht... "
|
echo -en "${GN} Installing Yacht... "
|
||||||
podman volume create yacht >/dev/null
|
podman volume create yacht >/dev/null
|
||||||
podman run -d \
|
podman run -d \
|
||||||
|
--privileged
|
||||||
--name yacht \
|
--name yacht \
|
||||||
--restart always \
|
--restart always \
|
||||||
-v /var/run/podman/podman.sock:/var/run/docker.sock \
|
-v /var/run/podman/podman.sock:/var/run/docker.sock \
|
||||||
-v yacht:/config \
|
-v yacht:/config \
|
||||||
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
|
-v /etc/timezone:/etc/timezone:ro \
|
||||||
-p 8000:8000 \
|
-p 8000:8000 \
|
||||||
selfhostedpro/yacht:latest &>/dev/null
|
selfhostedpro/yacht:latest &>/dev/null
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
#echo -en "${GN} Pulling Home Assistant Image... "
|
echo -en "${GN} Pulling Home Assistant Image... "
|
||||||
#podman pull docker.io/homeassistant/home-assistant:stable &>/dev/null
|
podman pull docker.io/homeassistant/home-assistant:stable &>/dev/null
|
||||||
#echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
#echo -en "${GN} Installing Home Assistant... "
|
echo -en "${GN} Installing Home Assistant... "
|
||||||
#podman volume create hass_config >/dev/null
|
podman volume create hass_config >/dev/null
|
||||||
#podman run -d \
|
podman run -d \
|
||||||
# --name homeassistant \
|
--privileged
|
||||||
# --restart unless-stopped \
|
--name homeassistant \
|
||||||
# -v /dev:/dev \
|
--restart unless-stopped \
|
||||||
# -v hass_config:/config \
|
-v /dev:/dev \
|
||||||
# -v /etc/localtime:/etc/localtime:ro \
|
-v hass_config:/config \
|
||||||
# -v /etc/timezone:/etc/timezone:ro \
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
# --net=host \
|
-v /etc/timezone:/etc/timezone:ro \
|
||||||
# homeassistant/home-assistant:stable &>/dev/null
|
--net=host \
|
||||||
#echo -e "${CM}${CL} \r"
|
homeassistant/home-assistant:stable &>/dev/null
|
||||||
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Creating Update Script... "
|
echo -en "${GN} Creating Update Script... "
|
||||||
file_path="/root/update.sh"
|
file_path="/root/update.sh"
|
||||||
|
@ -144,10 +141,10 @@ EOF
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||||
|
|
||||||
#podman generate systemd \
|
podman generate systemd \
|
||||||
# --new --name homeassistant \
|
--new --name homeassistant \
|
||||||
# > /etc/systemd/system/homeassistant.service
|
> /etc/systemd/system/homeassistant.service
|
||||||
#systemctl enable homeassistant &>/dev/null
|
systemctl enable homeassistant &>/dev/null
|
||||||
|
|
||||||
podman generate systemd \
|
podman generate systemd \
|
||||||
--new --name yacht \
|
--new --name yacht \
|
||||||
|
|
Loading…
Reference in a new issue