|
@@ -139,8 +139,11 @@ case "$1" in
|
139
|
139
|
|
140
|
140
|
update-ca-certificates
|
141
|
141
|
|
142
|
|
- # now let's add the ssl cert for the auth. domain (we use # as a sed delimiter cause filepaths are confused with default / delimiter)
|
143
|
|
- sed -i "s#VirtualHost \"$JICOFO_AUTH_DOMAIN\"#VirtualHost \"$JICOFO_AUTH_DOMAIN\"\n ssl = {\n key = \"$AUTH_KEY_FILE\";\n certificate = \"$AUTH_CRT_FILE\";\n \}#g" $PROSODY_HOST_CONFIG
|
|
142
|
+ # don't fail on systems with custom config ($PROSODY_HOST_CONFIG is missing)
|
|
143
|
+ if [ -f $PROSODY_HOST_CONFIG ]; then
|
|
144
|
+ # now let's add the ssl cert for the auth. domain (we use # as a sed delimiter cause filepaths are confused with default / delimiter)
|
|
145
|
+ sed -i "s#VirtualHost \"$JICOFO_AUTH_DOMAIN\"#VirtualHost \"$JICOFO_AUTH_DOMAIN\"\n ssl = {\n key = \"$AUTH_KEY_FILE\";\n certificate = \"$AUTH_CRT_FILE\";\n \}#g" $PROSODY_HOST_CONFIG
|
|
146
|
+ fi
|
144
|
147
|
|
145
|
148
|
# trigger a restart
|
146
|
149
|
PROSODY_CONFIG_PRESENT="false"
|