podman-peerjs add scripts
This commit is contained in:
parent
6dc95d4a03
commit
58e161f6b4
18
podman-peerjs/80_destroy.sh
Normal file
18
podman-peerjs/80_destroy.sh
Normal 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
11
podman-peerjs/90_prune.sh
Normal 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}
|
Loading…
Reference in a new issue