We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f054a3f commit 2eb1684Copy full SHA for 2eb1684
nodebb.php
@@ -98,14 +98,13 @@ public function setup( $args ) {
98
99
// Run initial setup
100
$setup = './nodebb setup ';
101
- $setup .= "'" . addslashes(
+ $setup .= "'" .
102
json_encode( [
103
"admin:username" => $options['nodebb_username'],
104
"admin:password" => $options['nodebb_password'],
105
"admin:password:confirm" => $options['nodebb_password'],
106
"admin:email" => $options['nodebb_email']
107
- ] )
108
- ) . "'";
+ ] ) . "'";
109
file_put_contents( $nodebb_folder . '/setup.sh', $setup );
110
$cmd = 'runuser -s /bin/bash -l ' . $user . ' -c "cd ' . $nodebb_folder . ' && source setup.sh"' . "\n";
111
$cmd .= '#rm -f ' . $nodebb_folder . 'setup.sh';
0 commit comments