Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No example of how to use tar-extra. #53

Closed
martinhbramwell opened this issue Aug 9, 2015 · 3 comments
Closed

No example of how to use tar-extra. #53

martinhbramwell opened this issue Aug 9, 2015 · 3 comments

Comments

@martinhbramwell
Copy link

I cannot get --tar-extra to work.

Could you please add a usage example to your README.

I have a tried simply ...

makeself --tar-extra --preserve-permissions  etc etc

... but the result is a new archive created called --preserve-permissions and the following error :

tar: -: Cannot stat: No such file or directory
tar: ./--preserve-permissions: file is the archive; not dumped
tar: Exiting with failure status due to previous errors
@megastep
Copy link
Owner

What OS are you using this on? Is it the current version from git or from some other package?

@martinhbramwell
Copy link
Author

Ok, I am mystified. That happened in a virtual machine with Ubuntu 14.04. So, I tried it in another, and found that privileges are preserved by default as I wanted, and no need to use --tar-extra.

I'd been doing a lot of experimentation with apt-get installations in the other machine, so perhaps I hosed something,

I believe I installed your version 2.2.0 with apt-get . But, possibly I was trying to run it from a git cloned directory.

Makeself is an impressive tool, if I may say so. Thank you!

@Gwindalmir
Copy link

I second a usage example.
I'm using the github master (2.2.0) on Centos 6, and it all works great, except for the --tar-extra option.

I'm trying to add the following options: --exclude=.svn --owner=root --group=root
I've tried:
--tar-extra "--exclude=.svn --owner=root --group=root"
--tar-extra --exclude=.svn --owner=root --group=root
--tar-extra --exclude=.svn --tar-extra --owner=root --tar-extra --group=root
--tar-extra --exclude=.svn

I don't even care about the permissions as much as the exclude option. I can see during the output that it still includes the directories I wanted to exclude.

This is a great tool, and I can work around the issue, but I'd like to use the options if possible.

Edit: Alternately, I'd like an option to embed an existing archive. :-)
Edit2: User error, if I specify --tar-extra as the first argument in the command, it works. I was placing it where the script args are supposed to be.
The following works:

makeself.sh --tar-extra "--exclude=.svn --owner=root" ....

mrshu added a commit to mrshu/makeself that referenced this issue Mar 14, 2017
* Add an example usage of `--tar-extra` to README.

* Fix megastep#53.

Signed-off-by: mr.Shu <mr@shu.io>
mrshu added a commit to mrshu/makeself that referenced this issue Mar 14, 2017
* Add an example usage of `--tar-extra` to README.

* Fix megastep#53.

Signed-off-by: mr.Shu <mr@shu.io>
mrshu added a commit to mrshu/makeself that referenced this issue Mar 14, 2017
* Add an example usage of `--tar-extra` to README.

* Fix megastep#53.

Signed-off-by: mr.Shu <mr@shu.io>
mrshu added a commit to mrshu/makeself that referenced this issue Mar 14, 2017
* Add an example usage of `--tar-extra` to README.

* Fix megastep#53.

Signed-off-by: mr.Shu <mr@shu.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants