commit ce22db8c36ec018eaafdeee7edc2ec9d33fdf014
parent cfe2797795ee3166ea9bb2e6ca2f7f583548a4fe
Author: rsiddharth <s@ricketyspace.net>
Date: Mon, 1 May 2017 23:47:19 +0000
.bin/anki: Update container path.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.bin/anki b/.bin/anki
@@ -20,7 +20,7 @@ if [ "$1" = "bootstrap" ]; then
mkdir -p $CONTAINER_DIR
sudo debootstrap --arch=amd64 testing $CONTAINER
echo 'starting container'
- sudo systemd-nspawn -D ./$CONTAINER \
+ sudo systemd-nspawn -D $CONTAINER \
--bind-ro=$SCRIPT:/root/$SCRIPT \
/root/$SCRIPT install
elif [ "$1" = "install" ]; then
@@ -39,7 +39,7 @@ elif [ "$1" = "start-container" ]; then
echo 'starting container'
xhost +local:
sudo systemd-nspawn --setenv=DISPLAY=:0.0 \
- -D ./$CONTAINER \
+ -D $CONTAINER \
--setenv=XAUTHORITY=~/.Xauthority \
--bind=/tmp/ \
--bind=/home/s/.Xauthority:/root/.Xauthority \
@@ -49,7 +49,7 @@ elif [ "$1" = "start-anki" ]; then
echo 'starting anki in container'
xhost +local:
sudo systemd-nspawn --setenv=DISPLAY=:0.0 \
- -D ./$CONTAINER \
+ -D $CONTAINER \
--setenv=XAUTHORITY=~/.Xauthority \
--bind=/tmp/ \
--bind=/home/s/.Xauthority:/root/.Xauthority \