File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -217,11 +217,13 @@ public function hcpp_invoke_plugin( $args ) {
217
217
$ url = "https:// $ domain " . $ subfolder ;
218
218
}
219
219
$ config = str_replace ( '%nodebb_url% ' , $ url , $ config );
220
- file_put_contents ( $ nodebb_folder . '/config.json ' , $ config );
221
220
222
221
// Copy over pre-installed NodeBB runtime files
223
222
$ hcpp ->copy_folder ( '/opt/nodebb ' , $ nodebb_folder , $ user );
224
223
224
+ // Overwrite the config.json file
225
+ file_put_contents ( $ nodebb_folder . '/config.json ' , $ config );
226
+
225
227
// Invoke the setup script to install NodeBB
226
228
$ cmd = 'export NODEBB_ADMIN_USERNAME=" ' . $ options ['nodeBB_username ' ] . '" && ' ;
227
229
$ cmd .= 'export NODEBB_ADMIN_EMAIL=" ' . $ options ['nodeBB_email ' ] . '" && ' ;
You can’t perform that action at this time.
0 commit comments