[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Poosible to hook on dpkg, dselect or apt?



On Thu, Aug 16, 2001 at 09:08:01PM +0200, Roland Bauerschmidt wrote:
> Ola Lundqvist wrote:
> > I'm packaging a script to administrate servers. What I want to
> > do is to run a script after all packages have been installed.
> > 
> > So is there any way to hook on dpkg, apt or dselect?
> 
> DPkg::Post-Install-Pkgs { "/your/commands"; };
> 
> Or something in apt.conf should work AFAIK.

Hi again.

I have now tried this and sorry to say but sich a thing does
not seem to exist in apt. :( There is a Pre-Install-Pkgs but
no Post-Install-Pkgs. The script is not runned anyway and I
use:

DPkg::Post-Install-Pkgs { "/usr/sbin/update-twinspot || true"; };

Is there anywhing wrong with my line or should I file a whishlist
bug to apt?

Regards,

// Ola

> Roland
> 
> -- 
> Roland Bauerschmidt

-- 
 --------------------- Ola Lundqvist ---------------------------
/  opal@debian.org                     Björnkärrsgatan 5 A.11   \
|  opal@lysator.liu.se                 584 36 LINKÖPING         |
|  +46 (0)13-17 69 83                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------



Reply to: