From 52ff5c022d4e926934eefb21f968c2df00827889 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Wed, 29 Jun 2011 08:22:35 -0700 Subject: Fix permissions on ikiwiki setup file --- libpiny/lib/Piny/Repo.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'libpiny') 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( $_ ) }; -- cgit v1.2.3