From 4eb177e65f7f8a1a5d9583792f86a001fa9ea828 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 19 Jul 2010 09:48:54 +0000 Subject: [PATCH] - set umask in php-starter files (fcgid), fixes #299 --- scripts/jobs/cron_tasks.inc.http.15.apache_fcgid.php | 1 + scripts/jobs/cron_tasks.inc.http.25.lighttpd_fcgid.php | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/jobs/cron_tasks.inc.http.15.apache_fcgid.php b/scripts/jobs/cron_tasks.inc.http.15.apache_fcgid.php index 2f318738..6190c59b 100644 --- a/scripts/jobs/cron_tasks.inc.http.15.apache_fcgid.php +++ b/scripts/jobs/cron_tasks.inc.http.15.apache_fcgid.php @@ -97,6 +97,7 @@ class apache_fcgid extends apache $starter_file.= "# starter created/changed on " . date("Y.m.d H:i:s") . " for domain '" . $domain['domain'] . "' with id #" . $domain['id'] . " from php template '" . $phpconfig['description'] . "' with id #" . $phpconfig['id'] . "\n"; $starter_file.= "# Do not change anything in this file, it will be overwritten by the Froxlor Cronjob!\n"; $starter_file.= "#\n\n"; + $starter_file.= "umask 022\n"; $starter_file.= "PHPRC=" . escapeshellarg($configdir) . "\n"; $starter_file.= "export PHPRC\n"; diff --git a/scripts/jobs/cron_tasks.inc.http.25.lighttpd_fcgid.php b/scripts/jobs/cron_tasks.inc.http.25.lighttpd_fcgid.php index c3294e73..9e61a0be 100644 --- a/scripts/jobs/cron_tasks.inc.http.25.lighttpd_fcgid.php +++ b/scripts/jobs/cron_tasks.inc.http.25.lighttpd_fcgid.php @@ -121,6 +121,7 @@ class lighttpd_fcgid extends lighttpd $starter_file.= "# starter created/changed on " . date("Y.m.d H:i:s") . " for domain '" . $domain['domain'] . "' with id #" . $domain['id'] . " from php template '" . $phpconfig['description'] . "' with id #" . $phpconfig['id'] . "\n"; $starter_file.= "# Do not change anything in this file, it will be overwritten by the Froxlor Cronjob!\n"; $starter_file.= "#\n\n"; + $starter_file.= "umask 022\n"; $starter_file.= "PHPRC=" . escapeshellarg($configdir) . "\n"; $starter_file.= "export PHPRC\n";