aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/sync-backups3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/hydractl/sync-backups b/share/hydractl/sync-backups
index bcc2836..cb905a3 100755
--- a/share/hydractl/sync-backups
+++ b/share/hydractl/sync-backups
@@ -60,6 +60,9 @@ function sync_backups_node {
if [ -z "$VOLUME" ]; then
echo "usage: $BASENAME <media> [nodes]"
exit 1
+elif [ "$WHOAMI" == 'root' ]; then
+ echo "Please run this command as the root user"
+ exit 1
else
shift
fi