mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Update podman_ha_setup.sh
This commit is contained in:
		
							parent
							
								
									3aa7e08204
								
							
						
					
					
						commit
						18273b8e28
					
				| 
						 | 
					@ -53,20 +53,13 @@ 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"
 | 
					podman generate systemd \
 | 
				
			||||||
service_path="/etc/systemd/system/podman@.service"
 | 
					    --new --name homeassistant \
 | 
				
			||||||
 | 
					    > /etc/systemd/system/homeassistant.service &>/dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "[Unit]
 | 
					systemctl enable homeassistant
 | 
				
			||||||
Description=podman %I container
 | 
					systemctl start homeassistant
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[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@homeassistant &>/dev/null
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg "Customizing container..."
 | 
					msg "Customizing container..."
 | 
				
			||||||
rm /etc/motd
 | 
					rm /etc/motd
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue