From 775a1c2eef709aabd1a0423e63c23616224af9d0 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 17 Sep 2020 11:37:18 +0200 Subject: [PATCH] Remove SVN authfile generation It is no longer needed (replaced with the auth_provider). --- scripts/svnauth/rebuild_svnauth.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/svnauth/rebuild_svnauth.php b/scripts/svnauth/rebuild_svnauth.php index f6f722e42e..695b1ec74b 100755 --- a/scripts/svnauth/rebuild_svnauth.php +++ b/scripts/svnauth/rebuild_svnauth.php @@ -131,11 +131,8 @@ function rebuildConfiguration($what) { $viewer, $repository, $authfile, $access); } } - if ($what == 'AUTHFILE') { - foreach ($authfile as $user => $data) { - print("$user:${data['hash']}\n"); - } - } else if ($what == 'ACCESS') { + + if ($what == 'ACCESS') { foreach ($access as $repository => $users) { print("[$repository]\n"); $rw_users = array(); @@ -156,12 +153,13 @@ function rebuildConfiguration($what) { print("$user\t${data['email']}\t${data['name']}\n"); } } + return true; } if (count($argv) != 2 || - ($argv[1] != 'ACCESS' && $argv[1] != 'AUTHFILE' && $argv[1] != 'NAMEMAP')) { - print("Usage: {$argv[0]} ACCESS|AUTHFILE|NAMEMAP\n"); + ($argv[1] != 'ACCESS' && $argv[1] != 'NAMEMAP')) { + print("Usage: {$argv[0]} ACCESS|NAMEMAP\n"); exit(1); }