From 92bf1d3496994473e08006333bb343e6063f57b8 Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Fri, 31 May 2019 15:34:48 -0500 Subject: [PATCH] symlink rustc --- lxc/start | 1 + readme.md | 3 ++- tests/test.swift | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lxc/start b/lxc/start index 8f2f7f1..6c13c98 100755 --- a/lxc/start +++ b/lxc/start @@ -4,5 +4,6 @@ mkdir -p /var/lib/lxc/piston/rootfs/exec rm -f /var/lib/lxc/piston/rootfs/exec/* cp -f executors/* /var/lib/lxc/piston/rootfs/exec chmod 700 /var/lib/lxc/piston/rootfs/exec/* +chown -R root:root /var/lib/lxc/piston/rootfs/exec lxc-start -n piston -d diff --git a/readme.md b/readme.md index 452e7d2..730efb2 100644 --- a/readme.md +++ b/readme.md @@ -25,7 +25,7 @@ systemctl start libvirtd lxc-create -t download -n piston -- --dist ubuntu --release bionic --arch amd64 ./start -# open a shell to the containr +# open a shell to the container ./shell # install all necessary piston dependencies @@ -42,6 +42,7 @@ apt-get -y install git tzdata nano \ umake swift ln -s /root/.local/share/umake/swift/swift-lang/usr/bin/swift /usr/bin/swift curl https://sh.rustup.rs -sSf | sh +ln -s /root/.cargo/rustc /usr/bin/rustc rm -rf /home/ubuntu chmod 777 /tmp chmod 777 -R /root diff --git a/tests/test.swift b/tests/test.swift index 11b15b1..a27808b 100644 --- a/tests/test.swift +++ b/tests/test.swift @@ -1 +1 @@ -print("hello") +print("good")