Page MenuHomeDevCentral

D863.id.diff
No OneTemporary

D863.id.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
Sun, Nov 24, 14:24 (5 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260355
Default Alt Text
D863.id.diff (1 KB)

Event Timeline