diff options
author | Thomas Schmidt <tschmidt@suse.de> | 2011-09-29 15:54:41 +0200 |
---|---|---|
committer | Thomas Schmidt <tschmidt@suse.de> | 2011-09-29 15:54:41 +0200 |
commit | 182333a781a838631f65a8308f95b0823fee6aac (patch) | |
tree | cefb7c8abce5fb7f10ab81772af852011e6f375a /lib/config.php | |
parent | 6636720d2db76c4b7959f6045308fce1dc74a6bb (diff) | |
download | nextcloud-server-182333a781a838631f65a8308f95b0823fee6aac.tar.gz nextcloud-server-182333a781a838631f65a8308f95b0823fee6aac.zip |
use central method for checking webserver user
Diffstat (limited to 'lib/config.php')
-rw-r--r-- | lib/config.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config.php b/lib/config.php index 67df5e94c6d..3aa69327f56 100644 --- a/lib/config.php +++ b/lib/config.php @@ -175,7 +175,7 @@ class OC_Config{ $result=@file_put_contents( OC::$SERVERROOT."/config/config.php", $content ); if(!$result) { $tmpl = new OC_Template( '', 'error', 'guest' ); - $tmpl->assign('errors',array(1=>array('error'=>"Can't write into config directory 'config'",'hint'=>"You can usually fix this by setting the owner of 'config' to the user that the web server uses (".exec('whoami').")"))); + $tmpl->assign('errors',array(1=>array('error'=>"Can't write into config directory 'config'",'hint'=>"You can usually fix this by setting the owner of 'config' to the user that the web server uses (".OC_Util::checkWebserverUser().")"))); $tmpl->printPage(); exit; } |