summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-07-19 02:02:47 -0700
committerjblake+piny@omgwallhack.org <jblake@omgwallhack.org>2010-07-19 02:02:47 -0700
commit940fcea58adc84f32aea4e773a71e043e43d9398 (patch)
tree62caa1d86e36fc9eae05dbf33e6a373a88223d3c /usr
parentf1004905d50f7c29909061ad708d6fe05b192551 (diff)
downloadpiny-code-940fcea58adc84f32aea4e773a71e043e43d9398.tar.gz
piny-code-940fcea58adc84f32aea4e773a71e043e43d9398.zip
Correct mode for /etc/cgitrepos.
Diffstat (limited to 'usr')
-rw-r--r--usr/src/libpiny/lib/Piny/Repo.pm2
1 files changed, 2 insertions, 0 deletions
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!";