1
0

Switch to duplicati/duplicati Docker image
All checks were successful
Deploy / Deploy (push) Successful in 15s

This commit is contained in:
2026-01-31 20:34:23 +00:00
parent b6a1d5b90d
commit e594142b3e
4 changed files with 67 additions and 14 deletions

18
init.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/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