=== modified file 'zsh-functions/confz_vserver_init' --- zsh-functions/confz_vserver_init 2016-12-21 20:14:05 +0000 +++ zsh-functions/confz_vserver_init 2016-12-21 11:38:20 +0000 @@ -16,8 +16,6 @@ } confz_deployed_system_do() { - local result - result=0 case ${vars[source]} in (*/) rsync -aAH ${vars[source]} ${vars[path]}/ || return $?;; @@ -33,16 +31,9 @@ (scp:*) scp -q ${vars[source]#scp:} /dev/stdout | tar -xpC ${vars[path]} return $[ $pipestatus[1] | $pipestatus[2] ];; - (sftp:*) - mkdir -p /root/.tmp || return $? - (cd /root/.tmp && sftp ${vars[source]#sftp:}) || return $? - tar -xpC ${vars[path]} -f /root/.tmp/${vars[source]:t} - return $? - rm -f /root/.tmp/${vars[source]:t} (*) tar -xpC ${vars[path]} -f ${vars[source]} || return $?;; esac - return $result } # create required directories