fix
This commit is contained in:
25
photoview/fix.sh
Executable file
25
photoview/fix.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user