Skip to content

Commit 5a72d75

Browse files
committed
Fix permissions issue
1 parent 265cad2 commit 5a72d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodeapp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function priv_change_web_domain_proxy_tpl( $args ) {
107107
];
108108
$args = $hcpp->do_action( 'nodeapp_copy_files', $args );
109109
$nodeapp_folder = $args['nodeapp_folder'];
110-
shell_exec( "chmod 751 " . escapeshellarg( $nodeapp_folder ) );
110+
chmod( $nodeapp_folder, 0751 );
111111

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

0 commit comments

Comments
 (0)