Skip to content

Commit 2eb1684

Browse files
committed
wip
1 parent f054a3f commit 2eb1684

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nodebb.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,13 @@ public function setup( $args ) {
9898

9999
// Run initial setup
100100
$setup = './nodebb setup ';
101-
$setup .= "'" . addslashes(
101+
$setup .= "'" .
102102
json_encode( [
103103
"admin:username" => $options['nodebb_username'],
104104
"admin:password" => $options['nodebb_password'],
105105
"admin:password:confirm" => $options['nodebb_password'],
106106
"admin:email" => $options['nodebb_email']
107-
] )
108-
) . "'";
107+
] ) . "'";
109108
file_put_contents( $nodebb_folder . '/setup.sh', $setup );
110109
$cmd = 'runuser -s /bin/bash -l ' . $user . ' -c "cd ' . $nodebb_folder . ' && source setup.sh"' . "\n";
111110
$cmd .= '#rm -f ' . $nodebb_folder . 'setup.sh';

0 commit comments

Comments
 (0)