Closed jubalh closed 6 years ago
Thanks!
But after testing, I found that only root user can run, can not run as an ordinary user
That should not happen. I tested here too, and it works for root and ordinary user. How did you test it, and on what system? For me it works perfectly.
Show no permissions to rm or cp, I'm not clear where it went wrong
Show no permissions to rm or cp
Sorry, I don't get what you mean by that. Can you elaborate? :)
Can not do anything( copy or remove file) with this script when I use my ordinary user
Did you set DESTDIR
in that example?
this is my Install
Okay, and you run it just like ./Install
or do you set DESTDIR=/some/place ./INSTALL
?
I just open terminal and run ./Install
Just to be sure, can you do this:
echo $DESTDIR
./Install
and post me the output?
Yes, thats how it should be. Even with my change the same thing should happen. Actually I wanted to ask you to run these commands with my change applied :)
This script is just for general users to install, so I think it is more suitable for general users to use this installation script
In case someone (distribution packager) wants to set the path himself lets check for the DESTDIR variable. If none is set do the same as before and install depending on UID.