apply: make sure each stage starts off back from the repo root dir
the apply.sh script should assume current directory is arbitrary after executing each step: base, bitcoin, lnd and so on. this commit simply changes current dir to the repo root before executing every step.dev
parent
aee0b8a3aa
commit
57d9548b84
5
apply.sh
5
apply.sh
|
@ -3,15 +3,20 @@
|
|||
# it must be run as root or a user with equivalent privileges.
|
||||
|
||||
exit_code=0
|
||||
# defined in the caller script
|
||||
rootdir="$SYSUPDATES_ROOTDIR"
|
||||
|
||||
# base os
|
||||
cd "$rootdir"
|
||||
./base/voidlinux.sh || exit 1
|
||||
|
||||
# bitcoin core
|
||||
cd "$rootdir"
|
||||
. ./btc/env
|
||||
bitcoin_apply || exit_code=$?
|
||||
|
||||
# lnd lightning
|
||||
cd "$rootdir"
|
||||
. ./lnd/env
|
||||
lnd_apply || exit_code=$?
|
||||
|
||||
|
|
Loading…
Reference in New Issue