Upgrade script

Kris Kennaway kris at obsecurity.org
Sat Apr 14 19:40:29 UTC 2007


The script is basically OK, but it needs some more error checking:

* It should bail if the backup tarball fails (e.g. disk full)

* Before spamming /usr/local there needs to be a check that no files
will be skipped (since you are using tar -k to avoid overwriting
existing files).  Probably something using find -type f -o -type l and
then comm(1) would be appropriate; the user should be warned about
these conflicts and either bail out until they resolve them, or just
proceed and let them deal with them by hand from the backup tarball.

* There is also the possibility for directories to change
permissions/ownership when they are spammed by tar.  This is probably
not important though.

Thanks,
Kris


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20070414/7ea50426/attachment.pgp


More information about the freebsd-x11 mailing list