From 4ce08ae1ab024be4b0a5f25a55dba3f0497da04d Mon Sep 17 00:00:00 2001 From: Thomas C Date: Thu, 29 Sep 2022 14:55:14 +0000 Subject: [PATCH] root check --- backup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backup.sh b/backup.sh index e69de29..7cb7a18 100644 --- a/backup.sh +++ b/backup.sh @@ -0,0 +1,6 @@ +#! /bin/bash + +if [ $UID -ne 0 ] ; then + echo "need root" + exit 1 +fi