Update podman-homeassistant-install.sh

This commit is contained in:
tteckster 2022-09-21 08:23:35 -04:00 committed by GitHub
parent 47e5cea8e5
commit 9553751139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 6 deletions

View File

@ -78,6 +78,15 @@ apt-get -y install podman &>/dev/null
systemctl enable --now podman.socket &>/dev/null
msg_ok "Installed Podman"
read -r -p "Would you like to add Yacht (Semifunctional)? <y/N> " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then
YACHT="Y"
else
YACHT="N"
fi
if [[ $YACHT == "Y" ]]; then
msg_info "Pulling Yacht Image"
podman pull docker.io/selfhostedpro/yacht:latest &>/dev/null
msg_ok "Pulled Yacht Image"
@ -94,8 +103,12 @@ podman run -d \
-v /etc/timezone:/etc/timezone:ro \
-p 8000:8000 \
selfhostedpro/yacht:latest &>/dev/null
podman generate systemd \
--new --name yacht \
> /etc/systemd/system/yacht.service
systemctl enable yacht &>/dev/null
msg_ok "Installed Yacht"
fi
msg_info "Pulling Home Assistant Image"
podman pull docker.io/homeassistant/home-assistant:stable &>/dev/null
msg_ok "Pulled Home Assistant Image"
@ -137,11 +150,6 @@ podman generate systemd \
> /etc/systemd/system/homeassistant.service
systemctl enable homeassistant &>/dev/null
podman generate systemd \
--new --name yacht \
> /etc/systemd/system/yacht.service
systemctl enable yacht &>/dev/null
msg_info "Cleaning up"
apt-get autoremove >/dev/null
apt-get autoclean >/dev/null