Mise en place suppression automatique nonpersistent_volumes. + utilisation avec privatebin
This commit is contained in:
parent
4a48971568
commit
fc1aa3c343
|
@ -18,3 +18,7 @@ ${ABSDIR}/70_disable.sh
|
||||||
rm -f ${HOME}/.config/systemd/user/${service_name}
|
rm -f ${HOME}/.config/systemd/user/${service_name}
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
podman rm ${container_name}
|
podman rm ${container_name}
|
||||||
|
|
||||||
|
for volume in ${nonpersistent_volumes}; do
|
||||||
|
podman volume rm ${volume}
|
||||||
|
done
|
||||||
|
|
|
@ -18,3 +18,7 @@ ${ABSDIR}/70_disable.sh
|
||||||
rm -f ${HOME}/.config/systemd/user/${service_name}
|
rm -f ${HOME}/.config/systemd/user/${service_name}
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
podman pod rm ${pod_name}
|
podman pod rm ${pod_name}
|
||||||
|
|
||||||
|
for volume in ${nonpersistent_volumes}; do
|
||||||
|
podman volume rm ${volume}
|
||||||
|
done
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
|
|
||||||
source ${ABSDIR}/../functions.sh
|
|
||||||
source ${ABSDIR}/vars.sh
|
|
||||||
|
|
||||||
# Run regular prune script for pods
|
|
||||||
source ${ABSDIR}/../_podman-common/80_destroy_container.sh &&
|
|
||||||
# Remove runtime volumes
|
|
||||||
for volume in ${nonpersistent_volumes}; do
|
|
||||||
podman volume rm ${volume}
|
|
||||||
done
|
|
||||||
|
|
1
podman-privatebin/80_destroy.sh
Symbolic link
1
podman-privatebin/80_destroy.sh
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../_podman-common/80_destroy_container.sh
|
Loading…
Reference in a new issue