Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/shellserver/odderon/code.sls b/roles/shellserver/odderon/code.sls
index 7897721..e845d1f 100644
--- a/roles/shellserver/odderon/code.sls
+++ b/roles/shellserver/odderon/code.sls
@@ -1,28 +1,28 @@
# -------------------------------------------------------------
# Salt — Deploy Odderon (darkbot)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-01-25
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
darkbot_repo:
file.directory:
- name: /opt/darkbot
- user: odderon
- group: nasqueron-irc
- dir_mode: 755
git.latest:
- name: https://devcentral.nasqueron.org/source/darkbot.git
- branch: production
- target: /opt/darkbot
- user: odderon
- 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:
- git: darkbot_repo
diff --git a/roles/shellserver/odderon/files/build.sh b/roles/shellserver/odderon/files/build.sh
new file mode 100644
index 0000000..d975643
--- /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/x-diff
Expires
Sat, Mar 21, 05:43 (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3546496
Default Alt Text
(1 KB)

Event Timeline