From c77435fa0329436d06452f192bfb3524b1ae8fe8 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 19 Sep 2022 00:36:07 +0200 Subject: [PATCH] Fix adduser --- scripts/install | 6 +++--- scripts/restore | 3 +++ scripts/upgrade | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 6c9fb88..c2fa4c1 100755 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/restore b/scripts/restore index 1bf5482..f22dcb5 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 980d1ed..7933416 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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