1
0
Files
duplicati/init.sh
Kappeh d110c1e001
All checks were successful
Deploy / Deploy (push) Successful in 14s
Switch to duplicati/duplicati Docker image
2026-01-31 23:05:03 +00:00

19 lines
476 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 duplicati:duplicati /data
run chown duplicati:duplicati /source