=== modified file 'zsh-functions/confz_vserver_init' --- zsh-functions/confz_vserver_init 2014-06-19 19:23:02 +0000 +++ zsh-functions/confz_vserver_init 2014-06-19 19:16:30 +0000 @@ -44,10 +44,8 @@ fi done fi - if ! [[ -e ${vars[etcdir]}/vdir ]]; then + if ! [[ -h ${vars[etcdir]}/vdir ]]; then fails=( "${vars[etcdir]}/vdir missing" ) - elif ! [[ -h ${vars[etcdir]}/vdir ]]; then - die "${vars[etcdir]}/vdir is not symlink or missing" fi require mounted_volume :size :filesystem \ @@ -65,7 +63,7 @@ mkdir -p ${vars[etcdir]} || return $? if [[ -h ${vars[etcdir]}/vdir ]]; then rm ${vars[etcdir]}/vdir || return $? + ln -s $vars[vdir] ${vars[etcdir]}/vdir || return $? fi - ln -s $vars[vdir] ${vars[etcdir]}/vdir || return $? print -r - ${vars[context_id]} >${vars[etcdir]}/context }