Search Results

Search: Posts Made By: JamesByars
Forum: Red Hat 11-07-2010
7,140
Posted By fpmurphy
As far as I recall only one argument can be...
As far as I recall only one argument can be passed - a count of the package versions.

See Fedora - Defining installation scripts...
Forum: Red Hat 11-07-2010
15,307
Posted By fpmurphy
The short answer is - in theory the --justdb...
The short answer is - in theory the --justdb option is not intended to run any pre or post scripts and care is taken in the reference version of RPM to ensure that only database-related actions...
3,195
Posted By DGPickett
Too lazy to use ", safe if $ip is blank but not...
Too lazy to use ", safe if $ip is blank but not if it is "x x"!

if [[ "$ip" = "127.0.0.1" ]]; then

-z is empty string, see man test.
3,195
Posted By ctsgnb
remove the x , make a test with an empty ip and...
remove the x , make a test with an empty ip and see what happen ...



---------- Post updated at 10:09 PM ---------- Previous update was at 10:07 PM ----------




if $ip is empty :
[[...
3,195
Posted By ctsgnb
x doesn't have special meaning it is here just in...
x doesn't have special meaning it is here just in case $ip is empty

-z means if empty (z stand for a zero length)
4,137
Posted By ctsgnb
backtick `` means pass the result as a variable...
backtick `` means pass the result as a variable in old fashion
Using $() is new fashion (some shell implementation may not support this way to write things
4,137
Posted By DGPickett
Well, '`' is small (hard to see/discern from...
Well, '`' is small (hard to see/discern from "'"), vi '%' does not pair them, and it
does not nest. I am not sure if it swallows linefeeds -- probably. So, good style is to use ksh and $(). Also,...
Forum: Red Hat 09-27-2010
2,233
Posted By fpmurphy
Have a look at rpm5.org (http://rpm5.org/). In...
Have a look at rpm5.org (http://rpm5.org/). In particular, Ed Bailey's book Maximum RPM (http://rpm5.org/docs/max-rpm.htm) and Eric Foster-Johnson' book RPM Guide...
Forum: Red Hat 09-27-2010
2,233
Posted By pludi
Yes, RPMs can contain scripts for pre/post...
Yes, RPMs can contain scripts for pre/post installation/removal. Those can only be added when building the package through the .spec file.
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 08:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy