16 lines
652 B
Plaintext
16 lines
652 B
Plaintext
|
function zssh_publish_configs()
|
||
|
{
|
||
|
[[ "${#zssh_host_config_accesses}" -gt 0 ]] || return 62
|
||
|
zshlibs_log zssh_server "generating access configs for parties …"
|
||
|
for sshmatch in ${(k)zssh_host_config_accesses}
|
||
|
do
|
||
|
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)"
|
||
|
zshlibs_log zssh_server "done generating access configs for parties"
|
||
|
}
|