Skip to content

Commit a540fa7

Browse files
committed
Correct order
1 parent c8d5552 commit a540fa7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nodebb.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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'] . '" && ';

0 commit comments

Comments
 (0)