]> git.ozlabs.org Git - next-scripts/blobdiff - do_build
limit the builds access to the network
[next-scripts] / do_build
index 7f2adc7321720cd690d011e1f85ea9912893da0f..767d37a3210e5691b34677fb2e83c36e8fb0c002 100755 (executable)
--- a/do_build
+++ b/do_build
@@ -4,7 +4,10 @@
 
 set -e
 
-ssh "$build_host" /bin/sh -e <<-EOF
+###ssh "$build_host" /bin/sh -e <<-EOF
+ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF
+       set -e
+
        echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH"
        export LANG=C