On Tue, 27 Feb 2001, Guillaume Rousse wrote:
> Ok, first problem solved. But i would raise an issue : while a file in
> /etc/logrotate.d could be considered a configuration file, a file in
> /etc/rc.d/init.d is really not a configuration file, but a launch script.
Right, technically it's not a conf file, but that's not really what %conf
is for, it's just a pointer for rpm.
>
> Second one is still unresolved. Here is the part of the script making
> rpmlint complaints (commenting it turns this off), just in case a shell
> guru could help me...
> # look for Java location
> if [ -n $JAVA_HOME ] ; then
> JAVALOC=$JAVA_HOME
Everyone likes to use if [ -f blah ]; then ; fi.
Using if test -f blah; then fi is portable. No we are only on Mandrake so
we don't have to worry about portability beyond Mandrake in this case, but
as a general rule this method is more portable and you don't have to fuss
with brackets. Also because [ is just a symlink to test, it *must* have a
space before an after, similaryly with ] which is just a null link. Make
sure you have spaces on either side like [ blah ] not [ blah]. That could
be creating a problem.
Anyway, bedtime for me :)
--
Sincerely,
David Walluck
<[EMAIL PROTECTED]>