Follow symlinks to fix working with aliases inside users/

master
Mikhail Novosyolov 3 years ago
parent fb145c1e96
commit cd5636f82b

@ -55,7 +55,7 @@ _main(){
if [ "$ALLOWED" = 1 ]; then
# Выводим все публичные ключи пользователя на stdout
# Если файлы не будут найдены, xargs сделает ненулевой код возврата
find "${DIR}/users/${user}" -name "*.key" -type f | xargs cat
find -L "${DIR}/users/${user}" -name "*.key" -type f | xargs cat
else
echo_err "User ${user} does not have access to ${hostname}!"
return 2

Loading…
Cancel
Save