Page MenuHomeDevCentral

D861.id2182.diff
No OneTemporary

D861.id2182.diff

diff --git a/roles/shellserver/odderon/init.sls b/roles/shellserver/odderon/code.sls
copy from roles/shellserver/odderon/init.sls
copy to roles/shellserver/odderon/code.sls
--- a/roles/shellserver/odderon/init.sls
+++ b/roles/shellserver/odderon/code.sls
@@ -6,5 +6,16 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
-include:
- - .account
+darkbot_repo:
+ git.latest:
+ - name: https://devcentral.nasqueron.org/source/darkbot.git
+ - branch: production
+ - target: /opt/darkbot
+ - user: www
+ - unless: test -f /opt/odderon/LOCKED
+ cmd.run:
+ - name: sh build.sh
+ - cwd: /opt/darkbot
+ - runas: odderon
+ - onchanges:
+ - file: /opt/darkbot/.git/refs/heads/production
diff --git a/roles/shellserver/odderon/init.sls b/roles/shellserver/odderon/init.sls
--- a/roles/shellserver/odderon/init.sls
+++ b/roles/shellserver/odderon/init.sls
@@ -8,3 +8,4 @@
include:
- .account
+ - .code

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 20, 03:04 (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2361511
Default Alt Text
D861.id2182.diff (1015 B)

Event Timeline