Skip to content

Commit 84f3eb6

Browse files
committed
Add some comments
1 parent 9314156 commit 84f3eb6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bin/v-add-user-ssh-jail

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ if [ -d "/home/$user" ]; then
5151
chown root:root /home/$user
5252
fi
5353

54+
# Prevent from enabling for users hen rssh or nologin is enabled
5455
user_str=$(grep "^$user:" /etc/passwd | egrep "rssh|nologin")
5556
if [ -n "$user_str" ]; then
5657
exit

func/rebuild.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ rebuild_user_conf() {
126126
chown root:root $HOMEDIR/$user/conf
127127

128128
$BIN/v-add-user-sftp-jail "$user"
129+
# Check if SHELL_JAIL_ENABLED
129130
if [ "$SHELL_JAIL_ENABLED" == "yes" ]; then
130131
$BIN/v-add-user-ssh-jail "$user"
131132
fi

0 commit comments

Comments
 (0)