From 940fcea58adc84f32aea4e773a71e043e43d9398 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Mon, 19 Jul 2010 02:02:47 -0700 Subject: Correct mode for /etc/cgitrepos. --- usr/src/libpiny/lib/Piny/Repo.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr') diff --git a/usr/src/libpiny/lib/Piny/Repo.pm b/usr/src/libpiny/lib/Piny/Repo.pm index 7cffd68..d8501f8 100644 --- a/usr/src/libpiny/lib/Piny/Repo.pm +++ b/usr/src/libpiny/lib/Piny/Repo.pm @@ -334,6 +334,8 @@ sub create { $temp->close or die "Could not close new cgitrc: $!"; + chmod( 00644, $temp->filename ); + rename( $temp->filename, "/etc/cgitrepos" ) or die "Could not rename over old cgitrc: $!"; system( "/usr/bin/sudo", "-u", $ikiuser->name, "/usr/bin/ikiwiki", "--setup", "/etc/ikiwiki/piny/" . $repo->name . ".setup" ) and die "Could not do initial compile of ikiwiki!"; -- cgit v1.2.3