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 ) {
217217 $ url = "https:// $ domain " . $ subfolder ;
218218 }
219219 $ config = str_replace ( '%nodebb_url% ' , $ url , $ config );
220- file_put_contents ( $ nodebb_folder . '/config.json ' , $ config );
221220
222221 // Copy over pre-installed NodeBB runtime files
223222 $ hcpp ->copy_folder ( '/opt/nodebb ' , $ nodebb_folder , $ user );
224223
224+ // Overwrite the config.json file
225+ file_put_contents ( $ nodebb_folder . '/config.json ' , $ config );
226+
225227 // Invoke the setup script to install NodeBB
226228 $ cmd = 'export NODEBB_ADMIN_USERNAME=" ' . $ options ['nodeBB_username ' ] . '" && ' ;
227229 $ cmd .= 'export NODEBB_ADMIN_EMAIL=" ' . $ options ['nodeBB_email ' ] . '" && ' ;
You can’t perform that action at this time.
0 commit comments