From c213e6cde571943138f603a9ef26229ae5979c82 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 8 May 2022 13:35:46 -0300 Subject: Fix: hydractl: sync-backups: check for regular user --- share/hydractl/sync-backups | 3 +++ 1 file changed, 3 insertions(+) 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 [nodes]" exit 1 +elif [ "$WHOAMI" == 'root' ]; then + echo "Please run this command as the root user" + exit 1 else shift fi -- cgit v1.2.3