[csw-maintainers] addition to CSWcommon?

Ben Walton bwalton at opencsw.org
Fri Dec 31 20:35:37 CET 2010


Excerpts from Maciej (Matchek) Blizinski's message of Wed Dec 29 20:50:46 -0500 2010:

> +  # Create the base directory if not present.
> +  # http://lists.opencsw.org/pipermail/maintainers/2010-December/013456.html
> +  base_dir=`/usr/bin/dirname ${dest}`
> +  if [ -r "${base_dir}" ]; then
> +      :
> +  else
> +      mkdir -p "${base_dir}"
> +  fi
> +
>    if [ "$smf" = "yes" ]; then
>      # Copy the service script
>      /usr/bin/cp $src $dest || exit 2

This looks ok as long as the rest of the script isn't taking the
install root into account.  If it is, then this could potentially
break in a jumpstart.  I'm not sure that this CAS is suited to a
jumpstart install anyway though...?  (I don't have and have never used
jumpstart, nor do I have any idea how widely used it is.)

Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302



More information about the maintainers mailing list