Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F24928355
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
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)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment