Files
homelab/photoview/fix.sh
2026-02-28 07:36:36 -06:00

26 lines
299 B
Bash
Executable File

#!/bin/sh
docker compose down
msg() {
>&2 printf '[*] %s\n' "$*"
}
dir=/mnt/images
if umount "$dir" ; then
msg "unmounted $dir"
else
msg "failed to unmount $dir!"
fi
if mount "$dir" ; then
msg "mounted $dir"
else
msg "failed to unmount $dir!"
fi
docker compose pull
docker compose up -d