grunt-compress is broken it does not honor the `mode` option when tyring to set the permissions on a file. This is broken through out the entire Grunt project (grunt-contrib-copy doesn't honor it, grunt-replace doesn't honor it... as far as I can tell nothing does). SO instead of wasting more time trying to get it to work (I already wasted an hour on it) I decided to fall back to just writing a 10 minute script that actually works. If you are intent on using a pure Grunt task to make it work feel free to go do that rabit hole.
9 lines
318 B
JavaScript
9 lines
318 B
JavaScript
var fs = require('fs');
|
|
var join = require('path').join;
|
|
module.exports = function (grunt) {
|
|
grunt.registerTask('chmod_kibana', 'Chmods bin/kibana', function () {
|
|
var done = this.async();
|
|
var path = join(grunt.config.get('build'), 'dist', 'kibana', 'bin', 'kibana');
|
|
fs.chmod(path, 0755, done);
|
|
});
|
|
};
|