Files
synapse/init.sh
Kappeh 2ebaaaacec
All checks were successful
Deploy / Deploy (push) Successful in 41s
Add synapse and database containers
2026-01-28 16:41:24 +00:00

19 lines
483 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
}
}
# Make sure volumes have correct permissions
run chown synapse:synapse /synapse_data
run chown synapse:synapse /postgres_data