Skip to content
Snippets Groups Projects
Commit d365f150 authored by Marius Burkard's avatar Marius Burkard
Browse files

Merge branch '6240-shell-home-symlinks' into 'develop'

Create symlinks for conveniance, SFTP user should not land in an empty dir.

Closes #6240

See merge request ispconfig/ispconfig3!1529
parents 05411b6c 0897e410
No related branches found
No related tags found
No related merge requests found
......@@ -168,6 +168,11 @@ class shelluser_base_plugin {
$app->system->chown($homedir.'/.profile', $data['new']['username']);
$app->system->chgrp($homedir.'/.profile', $data['new']['pgroup']);
// Create symlinks for conveniance, SFTP user should not land in an empty dir.
symlink('../../web', $homedir.'/web');
symlink('../../log', $homedir.'/log');
symlink('../../private', $homedir.'/private');
//* Disable shell user temporarily if we use jailkit
if($data['new']['chroot'] == 'jailkit') {
$command = 'usermod -s /bin/false -L ? 2>/dev/null';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment