Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ian Eiloart
Sympl
Commits
4ad740bc
Commit
4ad740bc
authored
Jan 11, 2016
by
Patrick J Cherry
Browse files
common: Tidied symbiosis-ssl to return a sane exit code.
I'm not sure the trap needs to be there at all really..
parent
71ee323a
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/bin/symbiosis-ssl
View file @
4ad740bc
...
...
@@ -123,10 +123,7 @@ end
exit_code
=
0
#
#
#
%w(QUIT INT TERM)
.
each
do
|
sig
|
%w(INT TERM)
.
each
do
|
sig
|
trap
(
sig
)
do
if
0
==
Process
.
uid
...
...
@@ -134,7 +131,7 @@ exit_code = 0
Process
.
egid
=
0
end
exit
exit_code
exit
1
end
end
...
...
@@ -150,3 +147,5 @@ domains.each do |domain|
end
end
exit
exit_code
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment