From 976677a701d23595f986adbb2abfd42c4d20b596 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 03 May 2012 10:21:54 -0400 Subject: [PATCH] Fixed: FS#2168 - Restore permissions of pdf files in invoices directory --- install/lib/installer_base.lib.php | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index a8142b9..3ee0a35 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -1771,9 +1771,8 @@ } if(is_dir($install_dir.'/interface/invoices')) { - chmod($install_dir.'/interface/invoices', 0770); - chown($install_dir.'/interface/invoices', 'ispconfig'); - chgrp($install_dir.'/interface/invoices', 'ispconfig'); + exec('chmod -R 770 '.escapeshellarg($install_dir.'/interface/invoices')); + exec('chown -R ispconfig:ispconfig '.escapeshellarg($install_dir.'/interface/invoices')); } // TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing -- Gitblit v1.9.1