On Wed, Nov 15, 2000 at 09:42:54AM -0500, Ben Collins wrote: > On Wed, Nov 15, 2000 at 04:18:29PM +0300, Peter Novodvorsky wrote: > > ++ 15/11/00 01:08 +0100 - Wichert Akkerman: > > > Previously Eythan Weg wrote: > > > > What can be done to make dpkg working again? Or > > > > at least usable to some degree. > > > > > > touch /var/lib/dpkg/status > > > touch /var/lib/dpkg/available > > > mkdir /var/lib/dpkg/info > > > dpkg --force-depends -i dpkg_1.6.15.deb > > > > May be dpkg could save /var/lib/dpkg/ directory somewhere every week? > > May be not all /var/lib/dpkg/ but the most needed parts. > > That's something for the admin to do. Maybe it could be added as an option > to another package (cron?). But I don't think it should be part of dpkg's > job to do backups. No. it is (IMHO) a job of the dpkg-package. Add a file like /etc/cron.daily/suidmanager: ------------- #!/bin/sh set -e # Don't run if the package isn't installed test -f /usr/sbin/suidregister || exit 0 # Just run the `suidregister' script once, to ensure that everything # is set as configured in "/etc/suid.conf". suidregister >/dev/null # May as well make a backup of "/etc/suid.conf" too. :-) if [ ! -f /var/backups/suid.conf.bak ]; then cp -af /etc/suid.conf /var/backups/suid.conf.bak fi if ! cmp -s /var/backups/suid.conf.bak /etc/suid.conf ; then cd /var/backups /usr/bin/savelog -p -c 2 suid.conf.bak > /dev/null cp -af /etc/suid.conf /var/backups/suid.conf.bak fi ------------- thanks Gruss Grisu -- Michael Bramer - a Debian Linux Developer http://www.debian.org PGP: finger grisu@db.debian.org -- Linux Sysadmin -- Use Debian Linux Ja, aber der Bootvorgang ist doch so sch?n mit den Wolken und so. Das st?rt meiner Meinung nach garnicht. (Martin Heinz zum Rebooten von M$-W)
Attachment:
pgp8uia10qrk1.pgp
Description: PGP signature