[izpack-user] Setting file-permissions in Linux

744 views
Skip to first unread message

Boaz Harel

unread,
Apr 5, 2009, 9:35:19 AM4/5/09
to IzPack mailing list
Hello,
I'm sure this has been discussed before, but I didn't find anything in
the archive.
I have a few script files that are part of my installation, which in my
source directory are listed with rwxrwxrwx permissions. However, when
the installer writes them on the target machine, they are written as
rw-r--r-- (and therefore don't run.) How do I either make the installer
preserve the permissions or, failing that, get the installer to change
the 'execute' permission on the files once they are written?
Thanks,
Boaz H

--

-------------------
Boaz Harel, Software Engineer
Net Dimes project, Tel Aviv University
http://www.netdimes.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Earl Hood

unread,
Apr 5, 2009, 11:55:18 AM4/5/09
to us...@izpack.codehaus.org
On April 5, 2009 at 16:35, Boaz Harel wrote:

> I have a few script files that are part of my installation, which in my
> source directory are listed with rwxrwxrwx permissions. However, when
> the installer writes them on the target machine, they are written as
> rw-r--r-- (and therefore don't run.) How do I either make the installer
> preserve the permissions or, failing that, get the installer to change
> the 'execute' permission on the files once they are written?

You can use <executable> tags in your pack definitions
to specify which files are executables. The key is
to have stage="never" attribute so izpack does not execute
the file and to set keep="true" so izpack does not remove it.

For example:

<executable targetfile="$INSTALL_PATH/bin/some-secript"
os="unix" stage="never" failure="warn" keep="true"/>

--ewh

Malkolm

unread,
Apr 5, 2009, 12:42:57 PM4/5/09
to us...@izpack.codehaus.org
Reply all
Reply to author
Forward
0 new messages