summaryrefslogtreecommitdiff
path: root/buildscripts/build
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/build')
-rwxr-xr-xbuildscripts/build/build.sh2
-rwxr-xr-xbuildscripts/build/build_front.sh22
-rwxr-xr-xbuildscripts/build/build_server.sh20
3 files changed, 22 insertions, 22 deletions
diff --git a/buildscripts/build/build.sh b/buildscripts/build/build.sh
index 5930c00..90856f3 100755
--- a/buildscripts/build/build.sh
+++ b/buildscripts/build/build.sh
@@ -167,7 +167,7 @@ function build_server_nodes() {
copy_ssh_keys
for node_id in "${server_node_ids[@]}"
do
- build_server $node_id
+ build_server $node_id &
done
}
diff --git a/buildscripts/build/build_front.sh b/buildscripts/build/build_front.sh
index ed3cb8b..117f302 100755
--- a/buildscripts/build/build_front.sh
+++ b/buildscripts/build/build_front.sh
@@ -23,8 +23,8 @@ server {
# Grab deps
if [ $(which node) == "" ]
then
- curl -sSL https://deb.nodesource.com/setup_16.x | sudo bash -
- sudo apt install -y nodejs
+ curl -sSL https://deb.nodesource.com/setup_16.x | sudo bash -
+ sudo apt install -y nodejs
fi
[ "$(which git)" != "" ] || sudo apt install -y git
[ "$(which nginx)" != "" ] || sudo apt install -y nginx
@@ -32,16 +32,16 @@ fi
# Checkout source
if [ ! -d $chessh_path ]
then
- mkdir -p $chessh_path
- cd $chessh_path
- git init
- git remote add origin $chessh_source
- git pull origin
- git checkout main
- git config pull.rebase true
+ mkdir -p $chessh_path
+ cd $chessh_path
+ git init
+ git remote add origin $chessh_source
+ git pull origin
+ git checkout main
+ git config pull.rebase true
else
- cd $chessh_path
- git pull origin main
+ cd $chessh_path
+ git pull origin main
fi
# Build
diff --git a/buildscripts/build/build_server.sh b/buildscripts/build/build_server.sh
index 80e6e91..57a3a1c 100755
--- a/buildscripts/build/build_server.sh
+++ b/buildscripts/build/build_server.sh
@@ -9,22 +9,22 @@ chessh_path="$HOME/src/chessh"
[ "$(which git)" != "" ] || sudo apt install -y git
if [ "$(which docker)" = "" ]
then
- curl -sSL https://get.docker.com | sh
+ curl -sSL https://get.docker.com | sh
fi
# Checkout source
if [ ! -d $chessh_path ]
then
- mkdir -p $chessh_path
- cd $chessh_path
- git init
- git remote add origin $chessh_source
- git pull origin
- git checkout main
- git config pull.rebase true
+ mkdir -p $chessh_path
+ cd $chessh_path
+ git init
+ git remote add origin $chessh_source
+ git pull origin
+ git checkout main
+ git config pull.rebase true
else
- cd $chessh_path
- git pull origin main
+ cd $chessh_path
+ git pull origin main
fi
# Build