You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Nicolás Vázquez <ni...@gmail.com> on 2016/06/14 13:51:34 UTC

.install and .postinstall files

Hi all,

A quick question: Where are 'debian/cloudstack-management.install' and
'debian/cloudstack-management.postinstall' files used? I see the first one
declares folders to be created but I don't know where is this file used.

Thanks,
Nicolas

Re: .install and .postinstall files

Posted by Nicolás Vázquez <ni...@gmail.com>.
Thanks Wido!

2016-06-15 4:29 GMT-03:00 Wido den Hollander <wi...@widodh.nl>:

>
> > Op 14 juni 2016 om 18:09 schreef Nicolás Vázquez <
> nicovazquez90@gmail.com>:
> >
> >
> > Thanks Rafael! My bad, it was '.postinst' extension instead of
> > '.postinstall'
> >
>
> These files are included the dpkg when building the .deb packages.
>
> They are executed post-installation when installing the .deb on a system.
>
> Widi
>
> > 2016-06-14 12:37 GMT-03:00 Rafael Fonseca <rs...@gmail.com>:
> >
> > > Hey Nicolas,
> > >
> > > The .install file should be used by dpkg when the deb packages are
> built
> > > with dpkg-buildpackage, i don't know about .postinstall extension,
> usually
> > > you have to specify post-install scripts somewhere.. a grep -r on the
> code
> > > base should expose if that postinstall file is called from deb
> packager or
> > > something else.
> > >
> > > Anyone else reading this mail, yes, i'm still alive lol, just happened
> to
> > > open my endless cloudstack mail folder lol :)
> > >
> > > On Tue, Jun 14, 2016 at 2:51 PM, Nicolás Vázquez <
> nicovazquez90@gmail.com>
> > > wrote:
> > >
> > > > Hi all,
> > > >
> > > > A quick question: Where are 'debian/cloudstack-management.install'
> and
> > > > 'debian/cloudstack-management.postinstall' files used? I see the
> first
> > > one
> > > > declares folders to be created but I don't know where is this file
> used.
> > > >
> > > > Thanks,
> > > > Nicolas
> > > >
> > >
>

Re: .install and .postinstall files

Posted by Wido den Hollander <wi...@widodh.nl>.
> Op 14 juni 2016 om 18:09 schreef Nicolás Vázquez <ni...@gmail.com>:
> 
> 
> Thanks Rafael! My bad, it was '.postinst' extension instead of
> '.postinstall'
> 

These files are included the dpkg when building the .deb packages.

They are executed post-installation when installing the .deb on a system.

Widi

> 2016-06-14 12:37 GMT-03:00 Rafael Fonseca <rs...@gmail.com>:
> 
> > Hey Nicolas,
> >
> > The .install file should be used by dpkg when the deb packages are built
> > with dpkg-buildpackage, i don't know about .postinstall extension, usually
> > you have to specify post-install scripts somewhere.. a grep -r on the code
> > base should expose if that postinstall file is called from deb packager or
> > something else.
> >
> > Anyone else reading this mail, yes, i'm still alive lol, just happened to
> > open my endless cloudstack mail folder lol :)
> >
> > On Tue, Jun 14, 2016 at 2:51 PM, Nicolás Vázquez <ni...@gmail.com>
> > wrote:
> >
> > > Hi all,
> > >
> > > A quick question: Where are 'debian/cloudstack-management.install' and
> > > 'debian/cloudstack-management.postinstall' files used? I see the first
> > one
> > > declares folders to be created but I don't know where is this file used.
> > >
> > > Thanks,
> > > Nicolas
> > >
> >

Re: .install and .postinstall files

Posted by Nicolás Vázquez <ni...@gmail.com>.
Thanks Rafael! My bad, it was '.postinst' extension instead of
'.postinstall'

2016-06-14 12:37 GMT-03:00 Rafael Fonseca <rs...@gmail.com>:

> Hey Nicolas,
>
> The .install file should be used by dpkg when the deb packages are built
> with dpkg-buildpackage, i don't know about .postinstall extension, usually
> you have to specify post-install scripts somewhere.. a grep -r on the code
> base should expose if that postinstall file is called from deb packager or
> something else.
>
> Anyone else reading this mail, yes, i'm still alive lol, just happened to
> open my endless cloudstack mail folder lol :)
>
> On Tue, Jun 14, 2016 at 2:51 PM, Nicolás Vázquez <ni...@gmail.com>
> wrote:
>
> > Hi all,
> >
> > A quick question: Where are 'debian/cloudstack-management.install' and
> > 'debian/cloudstack-management.postinstall' files used? I see the first
> one
> > declares folders to be created but I don't know where is this file used.
> >
> > Thanks,
> > Nicolas
> >
>

Re: .install and .postinstall files

Posted by Rafael Fonseca <rs...@gmail.com>.
Hey Nicolas,

The .install file should be used by dpkg when the deb packages are built
with dpkg-buildpackage, i don't know about .postinstall extension, usually
you have to specify post-install scripts somewhere.. a grep -r on the code
base should expose if that postinstall file is called from deb packager or
something else.

Anyone else reading this mail, yes, i'm still alive lol, just happened to
open my endless cloudstack mail folder lol :)

On Tue, Jun 14, 2016 at 2:51 PM, Nicolás Vázquez <ni...@gmail.com>
wrote:

> Hi all,
>
> A quick question: Where are 'debian/cloudstack-management.install' and
> 'debian/cloudstack-management.postinstall' files used? I see the first one
> declares folders to be created but I don't know where is this file used.
>
> Thanks,
> Nicolas
>