services-garbaye/podman-peerjs/80_destroy.sh

19 lines
411 B
Bash
Raw Normal View History

2021-05-04 20:26:14 +00:00
#!/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
2021-05-04 21:01:38 +00:00
# add check if running, ask to stop first
# add check if systemctl exists, ask to disable first
2021-05-04 20:26:14 +00:00
podman rm ${container_name}