Skip to content

Commit

Permalink
Fix permissions issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Dec 13, 2023
1 parent 265cad2 commit 5a72d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeapp.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function priv_change_web_domain_proxy_tpl( $args ) {
];
$args = $hcpp->do_action( 'nodeapp_copy_files', $args );
$nodeapp_folder = $args['nodeapp_folder'];
shell_exec( "chmod 751 " . escapeshellarg( $nodeapp_folder ) );
chmod( $nodeapp_folder, 0751 );

// Install dependencies
$cmd = 'runuser -s /bin/bash -l ' . $user . ' -c "cd \"' . $nodeapp_folder . '\" && export NVM_DIR=/opt/nvm && source /opt/nvm/nvm.sh && npm install"';
Expand Down

0 comments on commit 5a72d75

Please sign in to comment.