From afa5f86ab96cc78adc318e1e6818dab8d30b957f Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 23 Feb 2015 21:51:43 +0000 Subject: [PATCH] Feel free to run this as root, mmkey? --- roles/distgit/files/mkbranch | 8 -------- roles/distgit/files/setup_git_package | 6 ------ 2 files changed, 14 deletions(-) diff --git a/roles/distgit/files/mkbranch b/roles/distgit/files/mkbranch index 27526804f9..1230571fec 100644 --- a/roles/distgit/files/mkbranch +++ b/roles/distgit/files/mkbranch @@ -118,14 +118,6 @@ if [ -n "$TEST" ] ; then exit 0 fi -# This account must have the proper permissions as to not screw up the -# repository work. -if [ "$(id -un)" = "root" ] ; then - echo "Please run this script as yourself" - exit -3 -fi -#### Change this to check for proper git-admin rights - # "global" permissions check if [ ! -w $GITROOT ] ; then echo "ERROR: You can not write to $GITROOT" diff --git a/roles/distgit/files/setup_git_package b/roles/distgit/files/setup_git_package index 05729b3c83..b22b31fa1f 100644 --- a/roles/distgit/files/setup_git_package +++ b/roles/distgit/files/setup_git_package @@ -73,12 +73,6 @@ if [ -d $GITROOT/$PACKAGE.git ] ; then exit -1 fi -# Just don't run as root, mmkey? -if [ "$(id -un)" = "root" ] ; then - echo "Please run this script as yourself" - exit -3 -fi - # "global" permissions check if [ ! -w $GITROOT ] ; then echo "ERROR: You can not write to $GITROOT"