File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -89,15 +89,16 @@ function update($event_name,$data) {
8989 $ command = 'usermod ' ;
9090 $ command .= ' --home ' .escapeshellcmd ($ data ['new ' ]['dir ' ]);
9191 $ command .= ' --gid ' .escapeshellcmd ($ data ['new ' ]['pgroup ' ]);
92- $ command .= ' --non-unique ' ;
92+ // $command .= ' --non-unique ';
9393 $ command .= ' --password ' .escapeshellcmd ($ data ['new ' ]['password ' ]);
9494 $ command .= ' --shell ' .escapeshellcmd ($ data ['new ' ]['shell ' ]);
95- $ command .= ' --uid ' .escapeshellcmd ($ uid );
95+ // $command .= ' --uid '.escapeshellcmd($uid);
9696 $ command .= ' --login ' .escapeshellcmd ($ data ['new ' ]['username ' ]);
9797 $ command .= ' ' .escapeshellcmd ($ data ['old ' ]['username ' ]);
9898
9999 exec ($ command );
100- $ app ->log ("Updated shelluser: " .$ data ['new ' ]['username ' ],LOGLEVEL_DEBUG );
100+ // $app->log("Updated shelluser: $command ",LOGLEVEL_DEBUG);
101+ $ app ->log ("Updated shelluser: " .$ data ['old ' ]['username ' ],LOGLEVEL_DEBUG );
101102
102103 } else {
103104 $ app ->log ("UID = $ uid for shelluser: " .$ data ['new ' ]['username ' ]." not allowed. " ,LOGLEVEL_ERROR );
You can’t perform that action at this time.
0 commit comments