added source file for podman

This commit is contained in:
mslacken
2022-11-24 15:06:48 +01:00
parent f64c91093b
commit 4a5b5a8317
4 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/sh -eu
# This is the uninstall script for grafana when run in a privileged
# container.
CONTAINER=warewulf
cd /
PATH="/usr/bin:/usr/sbin"
if [ ! -d /host/etc ] || [ ! -d /host/usr/local/bin ]; then
echo "${CONTAINER}-uninstall: host file system is not mounted at /host"
exit 1
fi
# removing installed files
echo "LABEL UNINSTALL: Removing all files"
rm -vf /host/usr/local/bin/wwctl
rm -vf /host/usr/local/bin/warewulf-container-manage.sh
rm -vf /host/etc/systemd/system/${CONTAINER}.service
rm -vf /host/usr/share/bash-completion/completions/wwctl