Chmod php-cgi binary so that it has execute permissions.

This commit is contained in:
Joey Payne 2015-07-31 11:53:25 -06:00
commit 0e481f5fbb

View file

@ -7,6 +7,7 @@ var phpwebkit = {
var os = require('os');
var os = os.platform();
var pw = this;
var fs = require('fs');
process.on('uncaughtException', function(err){
pw.changeState('<strong>'+err+'</strong>', '#CD0000');
@ -27,6 +28,9 @@ var phpwebkit = {
}
}
// set the permissions to be able to execute
fs.chmodSync(process.cwd() + bin.slice(1), 0755);
this.fileExists(bin, function(result){
if(result === false) {
return 'php-cgi';
@ -102,4 +106,4 @@ var phpwebkit = {
};
phpwebkit.runApp();
phpwebkit.runApp();