diff options
-rwxr-xr-x | share/hydractl/sync-backups | 3 |
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 |