#!/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