diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2018-10-01 19:28:49 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2018-10-01 19:28:49 -0700 |
commit | 4f593e7108258b8a4abb033cbc6b2eca2fc7845a (patch) | |
tree | 68a7203fc96ba3fc56ebc4f669555d46163bf26d | |
parent | 407c6763f8f7e3838bd5e17c3bb5b039bdbfc92f (diff) | |
download | piny-code-4f593e7108258b8a4abb033cbc6b2eca2fc7845a.tar.gz piny-code-4f593e7108258b8a4abb033cbc6b2eca2fc7845a.zip |
Piny::Repo: addgroup should use --system
-rw-r--r-- | libpiny/lib/Piny/Repo.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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!"; }; |