Mise en place suppression automatique nonpersistent_volumes. + utilisation avec privatebin

This commit is contained in:
Gitouche 2022-02-20 12:40:56 +01:00
parent 4a48971568
commit fc1aa3c343
3 changed files with 9 additions and 13 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -0,0 +1 @@
../_podman-common/80_destroy_container.sh