Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/psadmin_plus.rb +8 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
---
2
2
SHA256:
3
- metadata.gz: b8056966af1d96cab37eef2b3d1ce8443d591e7a20fd19241c2b7c341ca8138d
4
- data.tar.gz: 0e1328ef04150ffdfb075d4f03a8fdd79bf0d93adb7a4a9c6f00c1787c48fb8d
3
+ metadata.gz: 97a0938c56af676dff50d72dadb25edf7955a57c714dde6db66c9bed4454c220
4
+ data.tar.gz: 40a14b129e2d76f5d0c647ba4ea01a1807c54c4a166d6ba6acdf4ec9230c1ca1
5
5
SHA512:
6
- metadata.gz: a9e9faa7ccd27456f442d6be195b9a1e6e90653f57f4f6dfd65534a23ade6f9174cd6d0d32a2eb6e9579cf07e436e3a8ceb88d6de01b725f5cf2d9abdf93b5b4
7
- data.tar.gz: 5b36b16f29c20c79d52756c1bd2cda3f4207826345087097716a42ea5e6dd72229ed28939bfc7b54c2f6f4b6e1abcf613800189aa9e15ef583978b4f46eab971
6
+ metadata.gz: a2df6212f1efd546fa93428548dd40113c55615e7de0dbafda495ed87e51e87e7e8379c2e451d45af2a695915c9f3e11c3b3e22073037a2c225ce5f30e77d976
7
+ data.tar.gz: 1d324919c2093cf7bf19cf53deb9c204a15a49a00896a1592a3f1da91889979c9e7f4f04bef8177c1892c44b5aa31634574c28cdf1c326020021c0e8ee089eb4
data/lib/psadmin_plus.rb CHANGED
@@ -97,6 +97,7 @@ def do_cmd(cmd, print = true, powershell = true)
97
97
out = "Invalid OS"
98
98
end
99
99
print ? (puts out) : result = out
100
+ out
100
101
end
101
102
102
103
def do_cmd_banner(c,t,d)
@@ -267,7 +268,7 @@ def do_start(type, domain)
267
268
start_app_service_cmd = "start-service #{app_service_name}"
268
269
start_prcs_cmd = "#{PS_PSADMIN_PATH}/psadmin -p start -d #{domain}"
269
270
start_prcs_service_cmd = "start-service #{prcs_service_name}"
270
- start_web_cmd = "#{PS_PSADMIN_PATH}/psadmin -w start -d #{domain}"
271
+ start_web_cmd = "${PS_CFG_HOME?}/webserv/#{domain}/bin/startPIA.sh"
271
272
start_web_service_cmd = "start-service #{web_service_name}"
272
273
273
274
case type
@@ -296,7 +297,12 @@ def do_start(type, domain)
296
297
when "web"
297
298
case "#{OS_CONST}"
298
299
when "linux"
299
- do_cmd(start_web_cmd)
300
+ if File.exist?("#{ENV['PS_CFG_HOME']}/webserv/#{domain}/servers/PIA/tmp/PIA.lok")
301
+ puts "Domain #{domain} already started"
302
+ else
303
+ do_cmd(start_web_cmd)
304
+ sleep 5.0
305
+ end
300
306
when "windows"
301
307
case "#{PS_WIN_SERVICES}"
302
308
when "web", "all"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: psadmin_plus
3
3
version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2.pre.pre1
5
5
platform: ruby
6
6
authors:
7
7
- Kyle Benson
@@ -35,9 +35,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
35
35
version: '0'
36
36
required_rubygems_version: !ruby/object:Gem::Requirement
37
37
requirements:
38
- - - ">="
38
+ - - ">"
39
39
- !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 1.3.1
41
41
requirements: []
42
42
rubygems_version: 3.0.4
43
43
signing_key: