Subject: HEADS UP: post installation check/fix script provided...
To: None <current-users@netbsd.org>
From: Luke Mewburn <lukem@wasabisystems.com>
List: current-users
Date: 04/29/2002 16:10:31
I recently committed src/etc/postinstall, which performs various
post installation checks and can fix most problems found.
Usage: postinstall [-s srcdir] [-d destdir] operation [item [...]]
Perform post-installation checks and/or fixes on a system's
configuration files. If no items are provided, all checks
or fixes are applied.
Options:
-s srcdir Source directory to compare from. [/usr/src/etc]
-d destdir Destination directory to check. [/etc]
Operation may be one of:
help display this help
list list available items
check perform post-installation checks on items
fix apply fixes that 'check' determines need to be applied
usage display this usage
Supported items:
Item Description
---- -----------
defaults /etc/defaults being up to date
mtree /etc/mtree being up to date
rc /etc/rc* and /etc/rc.d/ being up to date
periodic /etc/{daily,weekly,monthly,security} being up to date
ssh ssh configuration file relocation
"postinstall -d ${DESTDIR} check" is run after a "make install" to
ensure that various configuration settings are up to date in light
of software changes.
The postinstall script can be run after extracting a snapshot;
extract the etc.tgz set into a temporary directory and run
postinstall from that directory. For example:
cd /tmp
tar zxf /some/snapshot/etc.tgz
./etc/postinstall -s ./etc check
[ review checks, and if happy to perform the fixes ... ]
./etc/postinstall -s ./etc fix
Luke.
--
Luke Mewburn <lukem@wasabisystems.com> http://www.wasabisystems.com
Luke Mewburn <lukem@netbsd.org> http://www.netbsd.org
Wasabi Systems - NetBSD hackers for hire
NetBSD - the world's most portable UNIX-like operating system