2022-01-28 12:31:22 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-01-28 12:55:07 +00:00
|
|
|
ABSDIR="$( dirname "$(realpath -s -- "$0")" )"
|
2022-01-28 12:31:22 +00:00
|
|
|
source ${ABSDIR}/../functions.sh
|
|
|
|
source ${ABSDIR}/vars.sh
|
|
|
|
|
|
|
|
ensure_pwd_is_scriptdir
|
|
|
|
ensure_not_root
|
|
|
|
|
|
|
|
# FAIL if pod does not exists
|
|
|
|
ensure_pod_exists ${pod_name}
|
|
|
|
|
|
|
|
# FAIL if pod is running
|
|
|
|
ensure_pod_not_running ${pod_name}
|
|
|
|
|
|
|
|
${ABSDIR}/70_disable.sh
|
|
|
|
|
|
|
|
rm -f ${HOME}/.config/systemd/user/${service_name}
|
|
|
|
systemctl --user daemon-reload
|
|
|
|
podman pod rm ${pod_name}
|
2022-02-20 11:40:56 +00:00
|
|
|
|
|
|
|
for volume in ${nonpersistent_volumes}; do
|
|
|
|
podman volume rm ${volume}
|
|
|
|
done
|