Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Massimiliano
ISPConfig 3
Commits
7a7ba27a
Commit
7a7ba27a
authored
Aug 17, 2018
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #5099 letsencrypt bug on multihost system
parent
71e4f824
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
server/plugins-available/apache2_plugin.inc.php
server/plugins-available/apache2_plugin.inc.php
+1
-1
server/plugins-available/nginx_plugin.inc.php
server/plugins-available/nginx_plugin.inc.php
+1
-1
No files found.
server/plugins-available/apache2_plugin.inc.php
View file @
7a7ba27a
...
...
@@ -1220,7 +1220,7 @@ class apache2_plugin {
/* Update the DB of the (local) Server */
$app
->
db
->
query
(
"UPDATE web_domain SET `ssl` = ?, `ssl_letsencrypt` = ? WHERE `domain` = ?"
,
$data
[
'new'
][
'ssl'
],
'n'
,
$data
[
'new'
][
'domain'
]);
/* Update also the master-DB of the Server-Farm */
$app
->
dbmaster
->
query
(
"UPDATE web_domain SET `ssl` = ?, `ssl_letsencrypt` = ? WHERE `domain` = ?
"
,
$data
[
'new'
][
'ssl'
],
'n'
,
$data
[
'new'
][
'domain
'
]);
$app
->
dbmaster
->
query
(
"UPDATE web_domain SET `ssl` = ?, `ssl_letsencrypt` = ? WHERE `domain` = ?
AND `server_id` = ?"
,
$data
[
'new'
][
'ssl'
],
'n'
,
$data
[
'new'
][
'domain'
],
$conf
[
'server_id
'
]);
}
}
...
...
server/plugins-available/nginx_plugin.inc.php
View file @
7a7ba27a
...
...
@@ -1298,7 +1298,7 @@ class nginx_plugin {
$data
[
'new'
][
'ssl_letsencrypt'
]
=
'n'
;
if
(
$data
[
'old'
][
'ssl'
]
==
'n'
)
$data
[
'new'
][
'ssl'
]
=
'n'
;
/* Update the DB of the (local) Server */
$app
->
db
->
query
(
"UPDATE web_domain SET `ssl` = ?, `ssl_letsencrypt` = ? WHERE `domain` = ?
"
,
$data
[
'new'
][
'ssl'
],
'n'
,
$data
[
'new'
][
'domain
'
]);
$app
->
db
->
query
(
"UPDATE web_domain SET `ssl` = ?, `ssl_letsencrypt` = ? WHERE `domain` = ?
AND `server_id` = ?"
,
$data
[
'new'
][
'ssl'
],
'n'
,
$data
[
'new'
][
'domain'
],
$conf
[
'server_id
'
]);
/* Update also the master-DB of the Server-Farm */
$app
->
dbmaster
->
query
(
"UPDATE web_domain SET `ssl` = ?, `ssl_letsencrypt` = ? WHERE `domain` = ?"
,
$data
[
'new'
][
'ssl'
],
'n'
,
$data
[
'new'
][
'domain'
]);
}
...
...
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