Browse Source

Modify if condition in jail check.

Raphael Schneeberger 7 years ago
parent
commit
c27b5e799e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-add-user-sftp-jail

+ 1 - 1
bin/v-add-user-sftp-jail

@@ -38,7 +38,7 @@ ssh_users=$(grep -A1 "^# Hestia SFTP Chroot" /etc/ssh/sshd_config | sed -n 2p |
 IFS=',' read -r -a users <<< "$ssh_users"
 IFS=',' read -r -a users <<< "$ssh_users"
 
 
 # Check if jail is already enabled
 # Check if jail is already enabled
-if [[ ! " ${users[@]} " =~ " ${user} " ]]; then
+if [[ " ${users[@]} " =~ " ${user} " ]]; then
     exit
     exit
 fi
 fi