Skip to content

Commit 2e75a11

Browse files
committed
vm-sysroot: put environment variables into a separate file
1 parent 17bf22e commit 2e75a11

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

vm-sysroot/env.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export JJS_SYSROOT=/var/lib/jjs
2+
export JJS_PATH=/usr
3+
export DATABASE_URL=postgres://jjs:internal@localhost:5432/jjs
4+
export RUST_BACKTRACE=1
5+
export JJS_HOST=0.0.0.0
6+
export JJS_SELF_ADDR=127.0.0.1

vm-sysroot/scripts/post-sysroot/init.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,11 @@ sleep 5
3131
echo "We are: \$(id)"
3232
3333
su jjs -c '
34-
export JJS_SYSROOT=/var/lib/jjs
35-
export JJS_PATH=/usr
36-
export DATABASE_URL=postgres://jjs:internal@localhost:5432/jjs
37-
export RUST_BACKTRACE=1
38-
export JJS_HOST=0.0.0.0
39-
export JJS_SELF_ADDR=127.0.0.1
34+
$(cat env.txt)
4035
jjs-frontend &
4136
'
4237
43-
export JJS_SYSROOT=/var/lib/jjs
44-
export JJS_PATH=/usr
45-
export DATABASE_URL=postgres://jjs:internal@localhost:5432/jjs
46-
export RUST_BACKTRACE=1
47-
export JJS_SELF_ADDR=127.0.0.1
38+
$(cat env.txt)
4839
jjs-invoker &
4940
5041
ifdown eth0

0 commit comments

Comments
 (0)