summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Darley <patrick.darley@codethink.co.uk>2015-09-10 15:54:10 +0000
committerPatrick Darley <patrick.darley@codethink.co.uk>2015-09-10 15:54:25 +0000
commitd11939b3d09ba2b8f503ed986f4d6c5d8de021a2 (patch)
treed36381da27a28e42c26af88e3331f657e89cd3e5
parent3a826a7d2a6b5fcd108bdadfcaf856eca505a4d5 (diff)
downloadbuildslave-scripts-d11939b3d09ba2b8f503ed986f4d6c5d8de021a2.tar.gz
Allow sudo privelage for instance number re-writes
-rwxr-xr-xbuild_a_system.sh2
-rwxr-xr-xdeploy_a_system.sh8
2 files changed, 7 insertions, 3 deletions
diff --git a/build_a_system.sh b/build_a_system.sh
index cf673f3..2f652ca 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
-sed -i '/^instances: /c\instances: 5' /home/patrickdarley/ybd/config/ybd.conf
+sudo sed -i '/^instances: /c\instances: 5' /home/patrickdarley/ybd/config/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 5cd2728..e28da5a 100755
--- a/deploy_a_system.sh
+++ b/deploy_a_system.sh
@@ -11,12 +11,11 @@ ybd_dir=/home/patrickdarley/ybd
# Can only deploy with a single instance of ybd. Crashes
# with >1
-sed -i '/^instances: /c\instances: 1' /home/patrickdarley/ybd/config/ybd.conf
+sudo sed -i '/^instances: /c\instances: 1' /home/patrickdarley/ybd/config/ybd.conf
# Make sure the btrfs module is loaded else all deploys shall be in vain
sudo modprobe btrfs
-
# try changing to the definitions dir then building
# ybd seems to set the "target" to be current dir, regardless
# Of it being definitions or not
@@ -24,3 +23,8 @@ sudo modprobe btrfs
cd "$definitions_dir"
sudo "$ybd_dir"/ybd.py clusters/"$cluster_name"
+
+
+# Err, should probably just change he deploy script but that is tlsa's
+# not mine. So will do this for now. Also assumed we wanted
+