Update podman_ha_setup.sh
This commit is contained in:
parent
5ae370707f
commit
6f6812d481
1 changed files with 25 additions and 18 deletions
|
@ -64,22 +64,29 @@ 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... "
|
||||||
#podman pull docker.io/selfhostedpro/yacht:latest &>/dev/null
|
podman pull docker.io/selfhostedpro/yacht:latest &>/dev/null
|
||||||
#echo -e "${CM}${CL} \r"
|
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 \
|
podman run -d \
|
||||||
# --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 \
|
||||||
# -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
|
||||||
|
@ -142,11 +149,11 @@ systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||||
# > /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 \
|
||||||
# > /etc/systemd/system/yacht.service
|
> /etc/systemd/system/yacht.service
|
||||||
#systemctl enable yacht &>/dev/null
|
systemctl enable yacht &>/dev/null
|
||||||
#echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Cleanup... "
|
echo -en "${GN} Cleanup... "
|
||||||
rm -rf /podman_ha_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*
|
rm -rf /podman_ha_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*
|
||||||
|
|
Loading…
Reference in a new issue