=== modified file 'zsh-functions/confz_vserver_init' --- zsh-functions/confz_vserver_init 2014-06-26 18:15:23 +0000 +++ zsh-functions/confz_vserver_init 2014-06-26 18:12:55 +0000 @@ -94,19 +94,16 @@ confz_vserver_listconfigs_hook_check() { checkvars name - (($+commands[vserver-listconfigs])) || \ die "can't find vserver-listconfigs in \$PATH" + do_command=( + ln -s $commands[vserver-listconfigs] + /etc/vservers/$vars[name]/scripts/post-start.d/vserver-listconfigs + ) [[ -x /etc/vservers/$vars[name]/scripts/post-start.d/vserver-listconfigs ]] } -confz_vserver_listconfigs_hook_check() { - mkdir -p /etc/vservers/$vars[name]/scripts/post-start.d || return $? - ln -s $commands[vserver-listconfigs] \ - /etc/vservers/$vars[name]/scripts/post-start.d/vserver-listconfigs -} - confz_vserver_listconfigs_hook_do() { local lnk lnk=/etc/vservers/$vars[name]/scripts/post-start.d/vserver-listconfigs