mirror of
https://github.com/YunoHost-Apps/ssh_chroot_dir_ynh.git
synced 2024-09-03 20:26:26 +02:00
Fix adduser
This commit is contained in:
parent
bada4f3d09
commit
c77435fa03
3 changed files with 9 additions and 6 deletions
|
@ -134,10 +134,10 @@ fi
|
|||
if ! IS_PACKAGE_CHECK
|
||||
then
|
||||
$final_path/chroot_manager.sh adduser --name $ssh_user $auth_opt "$auth_value" --directory "$user_dir" --quota $size
|
||||
fi
|
||||
|
||||
# Allow the user to use ssh
|
||||
adduser $ssh_user ssh.app
|
||||
# Allow the user to use ssh
|
||||
adduser $ssh_user ssh.app
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# ADD A LINK TO CHROOT_MANAGER
|
||||
|
|
|
@ -108,6 +108,9 @@ ssh_chroot_copy_binary rsync "$user_dir"
|
|||
if ! IS_PACKAGE_CHECK
|
||||
then
|
||||
ssh_chroot_set_permissions "$user_dir" $ssh_user
|
||||
|
||||
# Allow the user to use ssh
|
||||
adduser $ssh_user ssh.app
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -82,10 +82,10 @@ ssh_chroot_copy_binary rsync "$user_dir"
|
|||
if ! IS_PACKAGE_CHECK
|
||||
then
|
||||
ssh_chroot_set_permissions "$user_dir" $ssh_user
|
||||
fi
|
||||
|
||||
# Allow the user to use ssh
|
||||
adduser $ssh_user ssh.app
|
||||
# Allow the user to use ssh
|
||||
adduser $ssh_user ssh.app
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# UPDATE THE LINK TO CHROOT_MANAGER
|
||||
|
|
Loading…
Add table
Reference in a new issue