add_new_user.sh: change authorized_keys2 -> authorized_keys.
This commit is contained in:
1 parent
acaa968748
commit
724800e67c
11 files changed
+6
-6
No files matched your search
+6
-6
@@ -211,16 +211,16 @@ fi
|
||||
|
||||
ssh_auhtorized_file=""
|
||||
if [[ -d "${templates_base_dir}/${user_name}/.ssh" ]]; then
|
||||
if [[ -f "${templates_base_dir}/${user_name}/.ssh/authorized_keys2" ]]; then
|
||||
ssh_auhtorized_file="${templates_base_dir}/${user_name}/.ssh/authorized_keys2"
|
||||
elif [[ -f "${templates_base_dir}/${user_name}/.ssh/authorized_keys" ]]; then
|
||||
if [[ -f "${templates_base_dir}/${user_name}/.ssh/authorized_keys" ]]; then
|
||||
ssh_auhtorized_file="${templates_base_dir}/${user_name}/.ssh/authorized_keys"
|
||||
elif [[ -f "${templates_base_dir}/${user_name}/.ssh/authorized_keys2" ]]; then
|
||||
ssh_auhtorized_file="${templates_base_dir}/${user_name}/.ssh/authorized_keys2"
|
||||
fi
|
||||
elif [[ -d "${templates_all_dir}/.ssh" ]] ; then
|
||||
if [[ -f "${templates_all_dir}/.ssh/authorized_keys2" ]]; then
|
||||
ssh_auhtorized_file="${templates_all_dir}/.ssh/authorized_keys2"
|
||||
elif [[ -f "${templates_all_dir}/.ssh/authorized_keys" ]]; then
|
||||
if [[ -f "${templates_all_dir}/.ssh/authorized_keys" ]]; then
|
||||
ssh_auhtorized_file="${templates_all_dir}/.ssh/authorized_keys"
|
||||
elif [[ -f "${templates_all_dir}/.ssh/authorized_keys2" ]]; then
|
||||
ssh_auhtorized_file="${templates_all_dir}/.ssh/authorized_keys2"
|
||||
fi
|
||||
fi
|
||||
if [[ -n "$ssh_auhtorized_file" ]] ; then
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user