From 63b3694383462096a47747132e24d1c5c6ac0cdb Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Sun, 25 Sep 2011 16:46:07 -0400 Subject: [PATCH] - Make sure the installer adds the nginx user to the ispconfig group (if nginx is installed). --- install/dist/lib/opensuse.lib.php | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/install/dist/lib/opensuse.lib.php b/install/dist/lib/opensuse.lib.php index 2e43750..a36ebcd 100644 --- a/install/dist/lib/opensuse.lib.php +++ b/install/dist/lib/opensuse.lib.php @@ -831,8 +831,14 @@ // TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing // and must be fixed as this will allow the apache user to read the ispconfig files. // Later this must run as own apache server or via suexec! - $command = 'groupmod --add-user wwwrun ispconfig'; - caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); + if($conf['apache']['installed'] == true){ + $command = 'groupmod --add-user '.$conf['apache']['user'].' ispconfig'; + caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); + } + if($conf['nginx']['installed'] == true){ + $command = 'groupmod --add-user '.$conf['nginx']['user'].' ispconfig'; + caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); + } //* Make the shell scripts executable $command = "chmod +x $install_dir/server/scripts/*.sh"; -- Gitblit v1.9.1