safe config names

This commit is contained in:
accel 2022-02-09 23:01:14 +03:00
parent f00c3bcc22
commit 8834230cb3

View File

@ -160,8 +160,10 @@ function zssh_publish_configs()
zshlibs_log zssh_server "generating access configs for parties …"
for sshmatch in ${(k)zssh_host_config_accesses}
do
zshlibs_log zssh_server "generating our server access config '$(zssh_host_info -E ${sshmatch})'"
zssh_generate_hostaccessconfig $sshmatch > "$(zssh_host_info -E ${sshmatch})"
config_filename="$(zssh_host_info -E ${sshmatch})"
config_filename=${config_filename//:/_}
zshlibs_log zssh_server "generating our server access config '${config_filename}'"
zssh_generate_hostaccessconfig $sshmatch > "${config_filename}"
done
zshlibs_log zssh_server "updating mtime for $(zssh_host_info -C)"
touch "$(zssh_host_info -C)"