Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
gencay tekin
jitsi-meet
Commits
13846b02
Commit
13846b02
authored
10 years ago
by
Damian Minkov
Browse files
Options
Downloads
Patches
Plain Diff
Fixes configuring certs if files already placed in /etc/ssl.
parent
7475b3a6
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/jitsi-meet.postinst
+23
-25
debian/jitsi-meet.postinst
with
23 additions
and
25 deletions
debian/jitsi-meet.postinst
+
23
−
25
View file @
13846b02
...
...
@@ -41,31 +41,29 @@ case "$1" in
sed
-i
"s/#
\
server_names_hash_bucket_size
\
64/
\
server_names_hash_bucket_size
\
64/"
/etc/nginx/nginx.conf
fi
if
[
!
-f
/etc/ssl/
$JVB_HOSTNAME
.key
]
||
[
!
-f
/etc/ssl/
$JVB_HOSTNAME
.crt
]
;
then
# SSL for nginx
db_get jitsi-meet/cert-choice
CERT_CHOICE
=
"
$RET
"
if
[
"
$CERT_CHOICE
"
=
'A certificate is available and the files are uploaded on the server'
]
;
then
db_set jitsi-meet/cert-path-key
"/etc/ssl/
$JVB_HOSTNAME
.key"
db_input critical jitsi-meet/cert-path-key
||
true
db_go
db_get jitsi-meet/cert-path-key
CERT_KEY
=
"
$RET
"
db_set jitsi-meet/cert-path-crt
"/etc/ssl/
$JVB_HOSTNAME
.crt"
db_input critical jitsi-meet/cert-path-crt
||
true
db_go
db_get jitsi-meet/cert-path-crt
CERT_CRT
=
"
$RET
"
# replace self-signed certificate paths with user provided ones
CERT_KEY_ESC
=
$(
echo
$CERT_KEY
|
sed
's/\./\\\./g'
)
CERT_KEY_ESC
=
$(
echo
$CERT_KEY_ESC
|
sed
's/\//\\\//g'
)
sed
-i
"s/ssl_certificate_key
\ \/
var
\/
lib
\/
prosody
\/
.*key/ssl_certificate_key
\
$CERT_KEY_ESC
/g"
\
/etc/nginx/sites-available/
$JVB_HOSTNAME
.conf
CERT_CRT_ESC
=
$(
echo
$CERT_CRT
|
sed
's/\./\\\./g'
)
CERT_CRT_ESC
=
$(
echo
$CERT_CRT_ESC
|
sed
's/\//\\\//g'
)
sed
-i
"s/ssl_certificate
\ \/
var
\/
lib
\/
prosody
\/
.*crt/ssl_certificate
\
$CERT_CRT_ESC
/g"
\
/etc/nginx/sites-available/
$JVB_HOSTNAME
.conf
fi
# SSL for nginx
db_get jitsi-meet/cert-choice
CERT_CHOICE
=
"
$RET
"
if
[
"
$CERT_CHOICE
"
=
'A certificate is available and the files are uploaded on the server'
]
;
then
db_set jitsi-meet/cert-path-key
"/etc/ssl/
$JVB_HOSTNAME
.key"
db_input critical jitsi-meet/cert-path-key
||
true
db_go
db_get jitsi-meet/cert-path-key
CERT_KEY
=
"
$RET
"
db_set jitsi-meet/cert-path-crt
"/etc/ssl/
$JVB_HOSTNAME
.crt"
db_input critical jitsi-meet/cert-path-crt
||
true
db_go
db_get jitsi-meet/cert-path-crt
CERT_CRT
=
"
$RET
"
# replace self-signed certificate paths with user provided ones
CERT_KEY_ESC
=
$(
echo
$CERT_KEY
|
sed
's/\./\\\./g'
)
CERT_KEY_ESC
=
$(
echo
$CERT_KEY_ESC
|
sed
's/\//\\\//g'
)
sed
-i
"s/ssl_certificate_key
\ \/
var
\/
lib
\/
prosody
\/
.*key/ssl_certificate_key
\
$CERT_KEY_ESC
/g"
\
/etc/nginx/sites-available/
$JVB_HOSTNAME
.conf
CERT_CRT_ESC
=
$(
echo
$CERT_CRT
|
sed
's/\./\\\./g'
)
CERT_CRT_ESC
=
$(
echo
$CERT_CRT_ESC
|
sed
's/\//\\\//g'
)
sed
-i
"s/ssl_certificate
\ \/
var
\/
lib
\/
prosody
\/
.*crt/ssl_certificate
\
$CERT_CRT_ESC
/g"
\
/etc/nginx/sites-available/
$JVB_HOSTNAME
.conf
fi
# jitsi meet
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets