Address some shellcheckery
This commit is contained in:
parent
cbd9995458
commit
7a89a522cc
@ -51,6 +51,7 @@ _run_system0() {
|
|||||||
pg_ctlcluster 11 main start
|
pg_ctlcluster 11 main start
|
||||||
sudo -H -u postgres bash <<PGSETUP
|
sudo -H -u postgres bash <<PGSETUP
|
||||||
set -o allexport
|
set -o allexport
|
||||||
|
# shellcheck source=/dev/null
|
||||||
source /tmp/app.env
|
source /tmp/app.env
|
||||||
createuser spoke || true
|
createuser spoke || true
|
||||||
createdb --owner=spoke spoke || true
|
createdb --owner=spoke spoke || true
|
||||||
@ -97,6 +98,7 @@ _run_spoke0() {
|
|||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
set -o allexport
|
set -o allexport
|
||||||
|
# shellcheck source=/dev/null
|
||||||
source /tmp/app.env
|
source /tmp/app.env
|
||||||
set +o allexport
|
set +o allexport
|
||||||
|
|
||||||
@ -116,6 +118,7 @@ _run_spoke0() {
|
|||||||
https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
|
https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
|
||||||
set +o errexit
|
set +o errexit
|
||||||
set +o xtrace
|
set +o xtrace
|
||||||
|
# shellcheck source=/dev/null
|
||||||
source ~/.nvm/nvm.sh
|
source ~/.nvm/nvm.sh
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
@ -4,6 +4,7 @@ set -o pipefail
|
|||||||
|
|
||||||
main() {
|
main() {
|
||||||
cd /home/spoke/app
|
cd /home/spoke/app
|
||||||
|
# shellcheck source=/dev/null
|
||||||
source ~/.nvm/nvm.sh
|
source ~/.nvm/nvm.sh
|
||||||
nvm use
|
nvm use
|
||||||
exec npm start
|
exec npm start
|
||||||
|
Loading…
Reference in New Issue
Block a user