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

Re: postinst: how to do something only if upgrading



You have four states for samba:  unconfigured, disabled, inetd,
or daemon.  You can look at /etc/inetd to figure out which
of these you are in, I believe.

The question about starting samba as a daemon seems rather odd If you  .
wanted to be picky, you could add a fifth state: start as a daemon but .
not after installation. I don't know what this would gain for you      .

For the special password file, you can ship samba with this as a
conffile, and have its contents indicate that it is unconfigured. If
it's deleted, that means user doesn't want it, if it exists but is no
longer unconfigured then leave it alone, too.

That's about it.

-- 
Raul


Eloy A. Paris <eparis@ven.ra.rockwell.com> wrote:
> Hi,
> 
> I have an open bug against my Samba package: the user says that the
> postinst asks whether to configure or not the package everytime he
> upgrades the package to a newer version.
> 
> I agree that the postinst should ask only the first time and not
> everytime the package is updated but I just don't know how to tell
> when the package is being installed for the first time or just being
> upgraded.
> 
> Also, the postinst changed at some version number so I need to know if
> the packages is being upgraded and also what's the version number being
> upgraded because if it is an old version I need to ask the question.
> 
> Any advice/suggestion on how should I do this?
> 
> Thanks,
> 
> E.-
> 
> -- 
> 
> Eloy A. Paris
> Information Technology Department
> Rockwell Automation de Venezuela
> Telephone: +58-2-9432311 Fax: +58-2-9431645
> 
> 
> --
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: