Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-ocserv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docker-ocserv
Commits
d7f5bf6f
Commit
d7f5bf6f
authored
Feb 10, 2015
by
Tommy Lau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix if error
parent
8855978e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
docker-entrypoint.sh
docker-entrypoint.sh
+6
-6
No files found.
docker-entrypoint.sh
View file @
d7f5bf6f
...
@@ -2,27 +2,27 @@
...
@@ -2,27 +2,27 @@
if
[
!
-f
/etc/ocserv/server-key.pem
]
||
[
-f
/etc/ocserv/server-cert.pem
]
;
then
if
[
!
-f
/etc/ocserv/server-key.pem
]
||
[
-f
/etc/ocserv/server-cert.pem
]
;
then
# Check environment variables
# Check environment variables
if
[
"
$CA_CN
"
==
""
]
;
then
if
[
"
$CA_CN
"
==
""
]
;
then
CA_CN
=
"VPN CA"
CA_CN
=
"VPN CA"
fi
fi
if
[
"
$CA_ORG
"
==
""
]
;
then
if
[
"
$CA_ORG
"
==
""
]
;
then
CA_ORG
=
"Big Corp"
CA_ORG
=
"Big Corp"
fi
fi
if
[
"
$CA_DAYS
"
==
""
]
;
then
if
[
"
$CA_DAYS
"
==
""
]
;
then
CA_DAYS
=
9999
CA_DAYS
=
9999
fi
fi
if
[
"
$SRV_CN
"
==
""
]
;
then
if
[
"
$SRV_CN
"
==
""
]
;
then
SRV_CN
=
"www.example.com"
SRV_CN
=
"www.example.com"
fi
fi
if
[
"
$SRV_ORG
"
==
""
]
;
then
if
[
"
$SRV_ORG
"
==
""
]
;
then
SRV_ORG
=
"MyCompany"
SRV_ORG
=
"MyCompany"
fi
fi
if
[
"
$SRV_DAYS
"
==
""
]
;
then
if
[
"
$SRV_DAYS
"
==
""
]
;
then
SRV_DAYS
=
9999
SRV_DAYS
=
9999
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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