From 4f593e7108258b8a4abb033cbc6b2eca2fc7845a Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Mon, 1 Oct 2018 19:28:49 -0700 Subject: Piny::Repo: addgroup should use --system --- libpiny/lib/Piny/Repo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpiny/lib') diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index d2dfc19..4d3a4d3 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -250,7 +250,7 @@ sub rebuild_git { my $fileperm; unless( getgrnam("git-" . $s->shortname ) ) { - system( "/usr/sbin/addgroup", "--quiet", "git-" . $s->shortname ) and die "Could not create repo group!"; + system( "/usr/sbin/addgroup", "--quiet", "--system", "git-" . $s->shortname ) and die "Could not create repo group!"; system( "/usr/sbin/adduser", "--quiet", $s->owner->name, "git-" . $s->shortname ) and die "Could not add you to the repo group!"; getpwnam("iki-" . $s->shortname) and system( "/usr/sbin/adduser", "--quiet", "iki-" . $s->shortname, "git-" . $s->shortname ) and die "Could not add ikiwiki user to git group!"; }; -- cgit v1.2.3