From: Silvio Rhatto Date: Sun, 8 May 2022 16:35:46 +0000 (-0300) Subject: Fix: hydractl: sync-backups: check for regular user X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c213e6cde571943138f603a9ef26229ae5979c82;p=hydra.git Fix: hydractl: sync-backups: check for regular user --- 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