]> git.ozlabs.org Git - next-scripts/blobdiff - do_last_build
limit the builds access to the network
[next-scripts] / do_last_build
index f1a20f2518fb0a911733ee2e4290493ca685b7f7..cfa6b5dae69731eca7e863c45ffeba0b8c9f9609 100755 (executable)
@@ -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
 
@@ -48,7 +51,10 @@ do
        ka=${a%:*}
        ca=${a#*:}
        d=../${ka}_defconfig
-       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