From 8daacd295f9e3d6fdbb469bf0b30b0e1951608ed Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Fri, 19 Aug 2022 10:11:00 +0200 Subject: [PATCH] Remove non-root requirement for clear script --- clear-repo.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/clear-repo.sh b/clear-repo.sh index 0112032..b4ecf3c 100755 --- a/clear-repo.sh +++ b/clear-repo.sh @@ -7,11 +7,6 @@ # Make sure that AWK rules file is present, readable and correctly set in this script's parameters init() { - # Only run if the user is not root - if [[ $USER = 'root' ]] ; then - echo "You cannot run this script as root!" - exit 1 - fi source variables.conf repo_db_file=$repo_name.db.tar repo_db_filesfile=$repo_name.files.tar