rewrites the whole thing

This commit is contained in:
Jean-Christophe Vanhalle
2023-08-14 14:48:47 +02:00
parent 222d86a909
commit b47876ad62
19 changed files with 407 additions and 139 deletions

19
umount-volumes.sh Executable file
View File

@@ -0,0 +1,19 @@
#! /bin/sh
#
if [ "$(id -u)" -ne 0 ]; then
echo "must be ran as root"
exit 1
fi
volumes="certs dynamic logs static webroot"
for volume in ${volumes}; do
mount_path="${PWD}/traefik-volumes/${volume}"
if [ "${volume}" = "webroot" ]; then
mount_path="${PWD}/${volume}-volume"
fi
if mountpoint "${mount_path}" -q; then
echo "umounting ${mount_path}"
umount "${mount_path}"
fi
done