UNIX Installers do not respect umask

Comments

1 comment

  • Avatar
    michiel

    Hi David,

    InstallBuilder preserves the permissions of bundled files so the files/folders so the umask setting will be ignored. It's possible to set default permissions for the unpacked files by setting the following:

    <project>
       ...
       <defaultUnixFilePermissions>644</defaultUnixFilePermissions>
       <defaultUnixDirectoryPermissions>755</defaultUnixDirectoryPermissions>
       ...
    </project>
    To change permissions depending on the umask setting you could first run umask using <runProgram program="umask"/>
    and then change the permissions of files depending on the `program_stdout`, using the <changePermssions> action.
     
    Regards,
    Michiel
     
     
    0
    Comment actions Permalink

Please sign in to leave a comment.