chiark / gitweb /
When cleaning up after failed clone, stat the to-be-cleaned-up directory before runni...
[dgit.git] / infra / ssh-wrap
index ad52709..deccc38 100755 (executable)
@@ -1,4 +1,10 @@
 #!/bin/sh
 set -e
-dispatchdir=/srv/dgit.debian.org/dispatch-dir
-exec $dispatchdir/distro=debian/dgit-live/infra/ssh-dispatch $dispatchdir
+umask 002
+
+srvdir=/srv/dgit.debian.org
+dispatchdir=$srvdir/dispatch-dir
+dgitlive=$srvdir/dgit-live
+
+PERLLIB="$dgitlive${PERLLIB+:}${PERLLIB}" \
+exec $dgitlive/infra/dgit-ssh-dispatch $dispatchdir