AnsweredAssumed Answered

Patch adding files with readonly permission

Question asked by ananth ananth on Oct 30, 2014
Latest reply on Oct 30, 2014 by Jason Eggers
I have created a patch with one manifest.php file and two other logic hook files. This patch will copy two files to opportunities module's custom folder. The issue is , when i deploy the patch using module loader, it was adding the two files but with permission 0644. i want to create it with permission 0664. Any help would be greatly appreciated.


Code : manifest.php

$manifest = array (
  0 =>
  array (
    'acceptable_sugar_versions' =>
    array (
      0 => '6.5.8',
    ),
  ),
  1 =>
  array (
    'acceptable_sugar_flavors' =>
    array (
      0 => 'CE',
      1 => 'PRO',
      2 => 'ENT',
    ),
  ),
  'readme' => '',
  'key' => '',
  'author' => '',
  'description' => '',
  'icon' => '',
  'is_uninstallable' => true,
  'name' => 'cases_customization_opportunities_3_9_2014_30921',
  'published_date' => '2014-09-02 04:56:26',
  'type' => 'module',
  'version' => 1409201792,
  'remove_tables' => 'prompt',
);
$installdefs = array (
  'id' => 'cases_customization_opportunities_3_9_2014_30921',  
  'copy' =>
  array(
    0 =>
      array(
          'from' => '/custom/modules/Opportunities/logic_hooks.php',
          'to' => 'custom/modules/Opportunities/logic_hooks.php',
    ),
    1 =>
      array(
          'from' => '/custom/modules/Opportunities/logic_hook/fetcha_perdida.php',
          'to' => 'custom/modules/Opportunities/logic_hook/fetcha_perdida.php',
    ),   
  ),
);

Outcomes