Skip to content
Snippets Groups Projects
Commit 246cde40 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

restore: detect non-root earlier

parent b4ce9887
No related branches found
No related tags found
No related merge requests found
......@@ -36,10 +36,17 @@
# --- load a transfer plugin
STORAGE_BIN=`_j_getvar ${STORAGEFILE} "bin"`
if [ -z "$STORAGE_BIN" ]; then
# STORAGE_BIN=restic
STORAGE_BIN=duplicity
if ! id -u | grep '^0$'
then
cecho error "ERROR: Maybe you need root permissions to start $0"
else
cecho error "ERROR: missing config bin = ... for file transfer."
fi
exit 1
fi
CFGPREFIX=${STORAGE_BIN}_
. `dirname $0`/plugins/transfer/$STORAGE_BIN.sh || exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment