summaryrefslogtreecommitdiff
path: root/libpiny
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-06-29 08:22:35 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-06-29 08:22:35 -0700
commit52ff5c022d4e926934eefb21f968c2df00827889 (patch)
treecd7b65f1d37d33931b128d28e661266019af0471 /libpiny
parent3c7257e838e361648ca7807f03dbc94d3b3100c9 (diff)
downloadpiny-code-52ff5c022d4e926934eefb21f968c2df00827889.tar.gz
piny-code-52ff5c022d4e926934eefb21f968c2df00827889.zip
Fix permissions on ikiwiki setup file
Diffstat (limited to 'libpiny')
-rw-r--r--libpiny/lib/Piny/Repo.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm
index 97f7717..dbb981b 100644
--- a/libpiny/lib/Piny/Repo.pm
+++ b/libpiny/lib/Piny/Repo.pm
@@ -322,6 +322,7 @@ sub rebuild_ikiwiki {
open( SETUP, ">", "/etc/ikiwiki/piny/" . $s->name . ".setup" ) or die "Could not open new ikiwiki setup file: $!";
print SETUP $s->ikiwiki_setup;
close( SETUP ) or die "Could not close new ikiwiki setup file: $!";
+ chmod( 00644, "/etc/ikiwiki/piny/" . $s->name . ".setup" ) or die "Could not chmod ikiwiki setup file: $!";
foreach( $s->ikiwiki_srcdir, $s->config->piny_ikiwikidestdir . $s->name, $s->ikiwiki_destdir, $s->secure_path ) {
unless( -d $_ ) { mkdir( $_ ) };