Skip to content

Commit c27b5e7

Browse files
committed
Modify if condition in jail check.
1 parent 603cba3 commit c27b5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-user-sftp-jail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ssh_users=$(grep -A1 "^# Hestia SFTP Chroot" /etc/ssh/sshd_config | sed -n 2p |
3838
IFS=',' read -r -a users <<< "$ssh_users"
3939

4040
# Check if jail is already enabled
41-
if [[ ! " ${users[@]} " =~ " ${user} " ]]; then
41+
if [[ " ${users[@]} " =~ " ${user} " ]]; then
4242
exit
4343
fi
4444

0 commit comments

Comments
 (0)