Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
letsencrypt.sh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
letsencrypt.sh
Commits
1cd2eb25
Commit
1cd2eb25
authored
Dec 12, 2015
by
Axel Burri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
never fallback to SCRIPTDIR, this is error-prone and confusing
parent
06feebe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
letsencrypt.sh
letsencrypt.sh
+2
-8
No files found.
letsencrypt.sh
View file @
1cd2eb25
...
...
@@ -127,8 +127,6 @@ init_system() {
if
[[
-e
"
${
BASEDIR
}
/domains.txt"
]]
;
then
DOMAINS_TXT
=
"
${
BASEDIR
}
/domains.txt"
elif
[[
-e
"
${
SCRIPTDIR
}
/domains.txt"
]]
;
then
DOMAINS_TXT
=
"
${
SCRIPTDIR
}
/domains.txt"
else
echo
"You have to create a domains.txt file listing the domains you want certificates for. Have a look at domains.txt.example."
exit
1
...
...
@@ -350,14 +348,10 @@ sign_domain() {
_openssl x509
-text
<
"
${
crt_path
}
"
# Create fullchain.pem
if
[[
-e
"
${
BASEDIR
}
/certs/
${
ROOTCERT
}
"
]]
||
[[
-e
"
${
SCRIPTDIR
}
/certs/
${
ROOTCERT
}
"
]]
;
then
if
[[
-e
"
${
BASEDIR
}
/certs/
${
ROOTCERT
}
"
]]
;
then
echo
" + Creating fullchain.pem..."
cat
"
${
crt_path
}
"
>
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain-
${
timestamp
}
.pem"
if
[[
-e
"
${
BASEDIR
}
/certs/
${
ROOTCERT
}
"
]]
;
then
cat
"
${
BASEDIR
}
/certs/
${
ROOTCERT
}
"
>>
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain-
${
timestamp
}
.pem"
else
cat
"
${
SCRIPTDIR
}
/certs/
${
ROOTCERT
}
"
>>
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain-
${
timestamp
}
.pem"
fi
cat
"
${
BASEDIR
}
/certs/
${
ROOTCERT
}
"
>>
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain-
${
timestamp
}
.pem"
ln
-sf
"fullchain-
${
timestamp
}
.pem"
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain.pem"
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