Commit 976677a7 authored by tbrehm's avatar tbrehm

Fixed: FS#2168 - Restore permissions of pdf files in invoices directory

parent dba1bd96
...@@ -1052,9 +1052,8 @@ class installer_dist extends installer_base { ...@@ -1052,9 +1052,8 @@ class installer_dist extends installer_base {
replaceLine('/etc/sudoers','Defaults requiretty','#Defaults requiretty',0,0); replaceLine('/etc/sudoers','Defaults requiretty','#Defaults requiretty',0,0);
if(is_dir($install_dir.'/interface/invoices')) { if(is_dir($install_dir.'/interface/invoices')) {
chmod($install_dir.'/interface/invoices', 0770); exec('chmod -R 770 '.escapeshellarg($install_dir.'/interface/invoices'));
chown($install_dir.'/interface/invoices', 'ispconfig'); exec('chown -R ispconfig:ispconfig '.escapeshellarg($install_dir.'/interface/invoices'));
chgrp($install_dir.'/interface/invoices', 'ispconfig');
} }
} }
......
...@@ -875,9 +875,8 @@ class installer extends installer_base ...@@ -875,9 +875,8 @@ class installer extends installer_base
} }
if(is_dir($install_dir.'/interface/invoices')) { if(is_dir($install_dir.'/interface/invoices')) {
chmod($install_dir.'/interface/invoices', 0770); exec('chmod -R 770 '.escapeshellarg($install_dir.'/interface/invoices'));
chown($install_dir.'/interface/invoices', 'ispconfig'); exec('chown -R ispconfig:ispconfig '.escapeshellarg($install_dir.'/interface/invoices'));
chgrp($install_dir.'/interface/invoices', 'ispconfig');
} }
// TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing // TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing
......
...@@ -1084,9 +1084,8 @@ class installer_dist extends installer_base { ...@@ -1084,9 +1084,8 @@ class installer_dist extends installer_base {
} }
if(is_dir($install_dir.'/interface/invoices')) { if(is_dir($install_dir.'/interface/invoices')) {
chmod($install_dir.'/interface/invoices', 0770); exec('chmod -R 770 '.escapeshellarg($install_dir.'/interface/invoices'));
chown($install_dir.'/interface/invoices', 'ispconfig'); exec('chown -R ispconfig:ispconfig '.escapeshellarg($install_dir.'/interface/invoices'));
chgrp($install_dir.'/interface/invoices', 'ispconfig');
} }
......
...@@ -1771,9 +1771,8 @@ class installer_base { ...@@ -1771,9 +1771,8 @@ class installer_base {
} }
if(is_dir($install_dir.'/interface/invoices')) { if(is_dir($install_dir.'/interface/invoices')) {
chmod($install_dir.'/interface/invoices', 0770); exec('chmod -R 770 '.escapeshellarg($install_dir.'/interface/invoices'));
chown($install_dir.'/interface/invoices', 'ispconfig'); exec('chown -R ispconfig:ispconfig '.escapeshellarg($install_dir.'/interface/invoices'));
chgrp($install_dir.'/interface/invoices', 'ispconfig');
} }
// TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing // TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment