summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Darley <patrick.darley@codethink.co.uk>2015-09-16 10:22:48 +0000
committerPatrick Darley <patrick.darley@codethink.co.uk>2015-09-16 10:23:50 +0000
commit6aa25893eef26ed3dc4101374f5d8112ab406eb9 (patch)
tree72ba000bf5c8c2c7afc96637d182fc783dd1b21d
parent9b8b79e6e9809e99790289bd2b37971a3b88cf93 (diff)
downloadbuildslave-scripts-6aa25893eef26ed3dc4101374f5d8112ab406eb9.tar.gz
Update config file location and genericify things
-rwxr-xr-xbuild_a_system.sh2
-rwxr-xr-xdeploy_a_system.sh3
2 files changed, 2 insertions, 3 deletions
diff --git a/build_a_system.sh b/build_a_system.sh
index 390d4f2..4c2819f 100755
--- a/build_a_system.sh
+++ b/build_a_system.sh
@@ -10,7 +10,7 @@ definitions_dir=definitions
ybd_dir=/home/patrickdarley/ybd
# Building is optimal with 5 "instances" on the monster machine
-sudo sed -i '/^instances: /c\instances: 5' /home/patrickdarley/ybd/config/ybd.conf
+sudo sed -i '/^instances: /c\instances: 5' "$ybd_dir"/ybd.conf
# will this build things - No.
# "$ybd_dir"/ybd.py "$definitions_dir"/systems/"$system_name"
diff --git a/deploy_a_system.sh b/deploy_a_system.sh
index 5d3eb6c..04d25ee 100755
--- a/deploy_a_system.sh
+++ b/deploy_a_system.sh
@@ -5,13 +5,12 @@
set -ex
cluster_name="$1"
-archive=/archive/
definitions_dir=definitions
ybd_dir=/home/patrickdarley/ybd
# Can only deploy with a single instance of ybd. Crashes
# with >1
-sudo sed -i '/^instances: /c\instances: 1' /home/patrickdarley/ybd/config/ybd.conf
+sudo sed -i '/^instances: /c\instances: 1' "$ybd_dir"/ybd.conf
# Make sure the btrfs module is loaded else all deploys shall be in vain
sudo modprobe btrfs