Skip to content
Snippets Groups Projects
Commit f34a5224 authored by Axel Hahn's avatar Axel Hahn
Browse files

- added cronjob to cache branches and tags

- fixed current process user in actionlog class
parent c8bbf0fd
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ class Actionlog { ...@@ -49,7 +49,7 @@ class Actionlog {
$this->_sUser = $_SERVER["PHP_AUTH_USER"] . " (web)"; $this->_sUser = $_SERVER["PHP_AUTH_USER"] . " (web)";
} else { } else {
$this->_sIP = 'local'; $this->_sIP = 'local';
$this->_sUser = get_current_user() . " (system)"; $this->_sUser = posix_getpwuid(posix_geteuid()) . " (system)";
} }
} }
......
...@@ -10,6 +10,11 @@ ...@@ -10,6 +10,11 @@
$sDocroot = (dirname(__dir__)) . "/public_html"; $sDocroot = (dirname(__dir__)) . "/public_html";
$processUser = posix_getpwuid(posix_geteuid());
if ($processUser['name']=="root"){
die("Do not start the script as user root\n");
};
require_once("$sDocroot/deployment/classes/logger.class.php"); require_once("$sDocroot/deployment/classes/logger.class.php");
global $oCLog; global $oCLog;
$oCLog = new logger(); $oCLog = new logger();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment