Files
Kappeh c275dbd0c8
Deploy / Deploy (push) Successful in 25s
Migrate to named docker volumes
2026-07-19 19:09:27 +01:00

19 lines
457 B
Bash
Executable File

#!/usr/bin/env sh
# Define a helper function that runs a command
# If the command fails, the script prints an error message
# and exits immediately.
run() {
# "$@" expands to all arguments passed to this function
# and preserves proper word splitting and quoting.
"$@" || {
echo "Error: command failed: $*" >&2
exit 1
}
}
run chown ente:ente /minio_data
run chown ente:ente /museum_data
run chown ente:ente /postgres_data