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
01e2c590
Commit
01e2c590
authored
Feb 10, 2015
by
Tommy Lau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix no generating ocpasswd issue
parent
85002439
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docker-entrypoint.sh
docker-entrypoint.sh
+1
-1
No files found.
docker-entrypoint.sh
View file @
01e2c590
...
@@ -52,7 +52,7 @@ if [ ! -f /etc/ocserv/server-key.pem ] || [ ! -f /etc/ocserv/server-cert.pem ];
...
@@ -52,7 +52,7 @@ if [ ! -f /etc/ocserv/server-key.pem ] || [ ! -f /etc/ocserv/server-cert.pem ];
certtool
--generate-certificate
--load-privkey
server-key.pem
--load-ca-certificate
ca-cert.pem
--load-ca-privkey
ca-key.pem
--template
server.tmpl
--outfile
server-cert.pem
certtool
--generate-certificate
--load-privkey
server-key.pem
--load-ca-certificate
ca-cert.pem
--load-ca-privkey
ca-key.pem
--template
server.tmpl
--outfile
server-cert.pem
# Create a test user
# Create a test user
if
[
-z
"
$NO_TEST_USER
"
-a
-f
/etc/ocserv/ocpasswd
]
;
then
if
[
-z
"
$NO_TEST_USER
"
]
&&
[
!
-f
/etc/ocserv/ocpasswd
]
;
then
echo
"Create test user 'test' with password 'test'"
echo
"Create test user 'test' with password 'test'"
echo
"test:*:
$5$DktJBFKobxCFd7wN$sn
.bVw8ytyAaNamO.CvgBvkzDiFR6DaHdUzcif52KK7"
>
/etc/ocserv/ocpasswd
echo
"test:*:
$5$DktJBFKobxCFd7wN$sn
.bVw8ytyAaNamO.CvgBvkzDiFR6DaHdUzcif52KK7"
>
/etc/ocserv/ocpasswd
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