podman-peerjs add scripts

This commit is contained in:
Gitouche 2021-05-04 22:26:14 +02:00
parent 6dc95d4a03
commit 58e161f6b4
3 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
source ${ABSDIR}/../functions.sh
source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
if ! podman container exists ${container_name}; then
echo container ${container_name} does not exists.
exit 1
fi
# add check if running, stop first
# add check if systemctl exists, disable first
podman rm ${container_name}

11
podman-peerjs/90_prune.sh Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
source ${ABSDIR}/../functions.sh
source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
podman rm ${container_name}
podman rmi ${image_name}