mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-27 07:21:59 +00:00
Update podman_ha_setup.sh
This commit is contained in:
parent
d725d3e8b6
commit
0d80ee95d6
@ -53,6 +53,21 @@ podman run -d \
|
|||||||
--net=host \
|
--net=host \
|
||||||
homeassistant/home-assistant:stable &>/dev/null
|
homeassistant/home-assistant:stable &>/dev/null
|
||||||
|
|
||||||
|
echo "Creating service file podman@.service"
|
||||||
|
service_path="/etc/systemd/system/podman@.service"
|
||||||
|
|
||||||
|
echo "[Unit]
|
||||||
|
Description=podman %I container
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=always
|
||||||
|
ExecStart=/usr/bin/podman start -a %i
|
||||||
|
ExecStop=/usr/bin/podman stop -t 2 %i
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=local.target" > $service_path
|
||||||
|
systemctl enable --now podman@container_homeassistant &>/dev/null
|
||||||
|
|
||||||
msg "Customizing container..."
|
msg "Customizing container..."
|
||||||
rm /etc/motd
|
rm /etc/motd
|
||||||
rm /etc/update-motd.d/10-uname
|
rm /etc/update-motd.d/10-uname
|
||||||
|
Loading…
Reference in New Issue
Block a user