Page MenuHomeDevCentral

D863.id2194.diff
No OneTemporary

D863.id2194.diff

diff --git a/roles/shellserver/odderon/code.sls b/roles/shellserver/odderon/code.sls
--- a/roles/shellserver/odderon/code.sls
+++ b/roles/shellserver/odderon/code.sls
@@ -20,8 +20,8 @@
- unless: test -f /opt/odderon/LOCKED
darkbot_build:
- cmd.run:
- - name: sh build.sh
+ cmd.script:
+ - source: salt://roles/shellserver/odderon/files/build.sh
- cwd: /opt/darkbot
- runas: odderon
- require:
diff --git a/roles/shellserver/odderon/files/build.sh b/roles/shellserver/odderon/files/build.sh
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/odderon/files/build.sh
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# Salt — Deploy Odderon (darkbot)
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-01-25
+# Authors: David Seikel, Dereckson
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+PREFIX=/opt/odderon
+
+test ! -r build/configure && sh bootstrap.sh
+
+cd build
+sh configure -C --prefix=$PREFIX "$@"
+make

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 05:09 (19 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307237
Default Alt Text
D863.id2194.diff (1 KB)

Event Timeline