File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ function update($event_name, $data) {
233233 $ app ->system ->chgrp (escapeshellcmd ($ data ['new ' ]['dir ' ].'/home ' ),escapeshellcmd ($ data ['new ' ]['pgroup ' ]));
234234 }
235235 $ app ->file ->mkdirs (escapeshellcmd ($ homedir ), '0750 ' );
236- $ app ->system ->chown (escapeshellcmd ($ homedir ),escapeshellcmd ($ data ['new ' ]['username ' ]));
236+ $ app ->system ->chown (escapeshellcmd ($ homedir ),escapeshellcmd ($ data ['new ' ]['puser ' ]));
237237 $ app ->system ->chgrp (escapeshellcmd ($ homedir ),escapeshellcmd ($ data ['new ' ]['pgroup ' ]));
238238 $ app ->system ->web_folder_protection ($ web ['document_root ' ], true );
239239 } else {
@@ -406,7 +406,7 @@ private function _setup_ssh_rsa() {
406406 if ($ this ->data ['new ' ]['chroot ' ] == 'jailkit ' ) {
407407 $ usrdir = escapeshellcmd ($ this ->data ['new ' ]['dir ' ]);
408408 } else {
409- $ usrdir = escapeshellcmd ($ this ->data ['new ' ]['dir ' ].'/home/ ' .$ data ['new ' ]['username ' ]);
409+ $ usrdir = escapeshellcmd ($ this ->data ['new ' ]['dir ' ].'/home/ ' .$ this -> data ['new ' ]['username ' ]);
410410 }
411411 $ sshdir = $ usrdir .'/.ssh ' ;
412412 $ sshkeys = $ usrdir .'/.ssh/authorized_keys ' ;
You can’t perform that action at this time.
0 commit comments