mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
Allow primary gid for the test user to be different from uid.
Apparently up until now they have always been the same, which is pretty typical. However, if they were not then ContainerTest.pm was not happy.
This commit is contained in:
parent
711b3e67cb
commit
aa3e5b8c72
@ -183,6 +183,10 @@
|
||||
<p>Move C module include in <file>test.c</file> above headers included for testing.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>Allow primary <id>gid</id> for the test user to be different from <id>uid</id>.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>Increase timeout in <id>storage/s3</id> module to improve reliability.</p>
|
||||
</release-item>
|
||||
|
@ -34,12 +34,12 @@ use constant POSTGRES_GROUP_ID => 5000;
|
||||
use constant POSTGRES_USER => POSTGRES_GROUP;
|
||||
use constant POSTGRES_USER_ID => 5000;
|
||||
|
||||
use constant TEST_GROUP => getgrgid($UID) . '';
|
||||
push @EXPORT, qw(TEST_GROUP);
|
||||
use constant TEST_GROUP_ID => getgrnam(TEST_GROUP) . '';
|
||||
use constant TEST_USER => getpwuid($UID) . '';
|
||||
push @EXPORT, qw(TEST_USER);
|
||||
use constant TEST_USER_ID => $UID;
|
||||
use constant TEST_GROUP => getgrgid((getpwnam(TEST_USER))[3]) . '';
|
||||
push @EXPORT, qw(TEST_GROUP);
|
||||
use constant TEST_GROUP_ID => getgrnam(TEST_GROUP) . '';
|
||||
|
||||
use constant BACKREST_USER => 'pgbackrest';
|
||||
push @EXPORT, qw(BACKREST_USER);
|
||||
|
Loading…
Reference in New Issue
Block a user