lib/docman/commands/execute_script_cmd.rb in docman-0.0.44 vs lib/docman/commands/execute_script_cmd.rb in docman-0.0.45
- old
+ new
@@ -18,9 +18,10 @@
def execute
Dir.chdir self['execution_dir']
logger.info "Script execution: #{self['location']}"
params = self['params'].nil? ? '' : prepare_params(self['params'])
+ `chmod 777 #{self['location']}`
`chmod a+x #{self['location']}`
logger.info `#{self['location']} #{params}`
$?.exitstatus
end
\ No newline at end of file