mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-04-28 03:21:12 +00:00
fix: Check authorized_keys change failed
This commit is contained in:
parent
f4fa153ffa
commit
f5a2f5e538
@ -41,7 +41,7 @@
|
||||
for user in {{ users.stdout_lines | join(" ") }}; do
|
||||
home=$(getent passwd $user | cut -d: -f6)
|
||||
echo -n "$user:"
|
||||
if [[ -f ${home}/.ssh/authorized_keys ]]; then
|
||||
if [ -f "${home}/.ssh/authorized_keys" ]; then
|
||||
cat ${home}/.ssh/authorized_keys | tr '\n' ';'
|
||||
fi
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user