regenwolke_autons 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f65003d5faaf55c932e50c914b7da3021efb764
4
- data.tar.gz: 4531ba75daaa4c57bbf3c64e11ed88bfb4cf1f56
3
+ metadata.gz: a8999fb6fcf0ee9bfdfe6c0bb3843ee4e78b0e0d
4
+ data.tar.gz: 427e85eae0fd090e3eb637f99beef04f16019ad8
5
5
  SHA512:
6
- metadata.gz: 1882bd8ca1c6af09a2934358769ba64980c0cfcc7408fb5d4fb65f388836004a77077a2f2369c7720d31a98044f34c1dab97728f0c12c60391aead4c6e87bcf1
7
- data.tar.gz: e49cc36198b4e89c53a53311d2bd0ef17a16081c9ef9d496f0ea5d58b4dd8fdfdcad687cf0f2d7a8e9630aa1a8b945ee0bf774dd70993e4bbd84ec00bd5ef053
6
+ metadata.gz: 66d94cf80828ff4e4cbdff380857ec826aa7b85366d9d78eac1e9c4a703c5b6273fae26f6816e31bf60ae03c132f938cb8450d4874f5ec19730d8732c46f36ca
7
+ data.tar.gz: e927b0500f15e3e0d8fa6db7a944b4324ac4db32c37d7b4aad470227d64b98fd90eb3d2da63c507fbf7205eaa8214771e8b27e696c98188c87bd22aa211e6e28
@@ -19,7 +19,10 @@ module RegenwolkeAutons
19
19
 
20
20
  def start_nginx
21
21
  create_config
22
- cp = ChildProcess.build('nginx', '-p', '.', '-c', 'nginx.config')
22
+
23
+ nginx_binary = File.exist?('/usr/sbin/nginx') ? '/usr/sbin/nginx' : 'nginx'
24
+
25
+ cp = ChildProcess.build(nginx_binary, '-p', '.', '-c', 'nginx.config')
23
26
  cp.detach = true
24
27
  cp.start
25
28
  self.pid = cp.pid
@@ -1,3 +1,3 @@
1
1
  module RegenwolkeAutons
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regenwolke_autons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dragan Milic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-20 00:00:00.000000000 Z
11
+ date: 2014-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: childprocess