From ce6dcf483febeb655958e0afae0eb320bed05bea Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 10 Mar 2009 11:54:51 -0400
Subject: [PATCH] Fixed bugs in opensuse config and docs Fixed a bug that prevented the modification of website settings of a site that the user created.

---
 server/plugins-available/shelluser_base_plugin.inc.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/plugins-available/shelluser_base_plugin.inc.php b/server/plugins-available/shelluser_base_plugin.inc.php
index 76fdf0e..1420a5e 100755
--- a/server/plugins-available/shelluser_base_plugin.inc.php
+++ b/server/plugins-available/shelluser_base_plugin.inc.php
@@ -90,9 +90,9 @@
 				
 				//* Disable shell user temporarily if we use jailkit
 				if($data['new']['chroot'] == 'jailkit') {
-					$command = 'usermod --lock '.escapeshellcmd($data['new']['username']);
+					$command = 'usermod -L '.escapeshellcmd($data['new']['username']);
 					exec($command);
-					$app->log("Disabling shelluser temporarily: ".$data['new']['username'],LOGLEVEL_DEBUG);
+					$app->log("Disabling shelluser temporarily: ".$command,LOGLEVEL_DEBUG);
 				}
 			
 			} else {

--
Gitblit v1.9.1