powerdns-admin: clean up old pods using same name on start if needed
This commit is contained in:
parent
0d482532ec
commit
e3ab1aa2b4
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@ Wants=network.target
|
|||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/usr/bin/podman pull docker.io/powerdnsadmin/pda-legacy:latest
|
||||
ExecStartPre=-/usr/bin/podman stop powerdns-admin
|
||||
ExecStartPre=-/usr/bin/podman rm powerdns-admin
|
||||
ExecStart=/usr/bin/podman run --rm -v pda-data:/data -p 9191:80 --env-file /etc/powerdns-admin.env --name powerdns-admin docker.io/powerdnsadmin/pda-legacy:latest
|
||||
Restart=always
|
||||
|
||||
|
|
Loading…
Reference in a new issue