Skip to content

Commit ebd9b78

Browse files
committed
Fix permissions issue
1 parent c5f36ab commit ebd9b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodebb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ public function setup( $args ) {
6161

6262
// Create the nodeapp folder
6363
$cmd = "mkdir -p " . escapeshellarg( $nodebb_folder ) . " ; ";
64-
$cmd .= "chmod 751 " . escapeshellarg( $nodeapp_folder ) . " && ";
6564
$cmd .= "chown -R $user:$user " . escapeshellarg( $nodeapp_folder );
6665
shell_exec( $cmd );
6766

@@ -74,6 +73,7 @@ public function setup( $args ) {
7473

7574
// Copy over nodebb config files
7675
$hcpp->copy_folder( __DIR__ . '/nodeapp', $nodebb_folder, $user );
76+
chmod( $nodeapp_folder, 0751 );
7777

7878
// Cleanup, allocate ports, prepare nginx and start services
7979
$hcpp->nodeapp->shutdown_apps( $nodeapp_folder );

0 commit comments

Comments
 (0)