Files
ente/init.sh
T
Kappeh ec5e31d816
Deploy / Deploy (push) Failing after 39s
Add named docker volumes
2026-07-19 18:50:01 +01:00

19 lines
457 B
Bash

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