Feature request: lbu pre and post package scripts
When creating a package, it would be helpful to have a directory of scripts that are run before and after the apkovl is created.
For example, the correct way to backup a sql database is to do a database dump; a script could be part of lbu to create the database dump before the apkovl is created, and then a script could delete the dump file after the apkovl is created.
That allows flexibility in including “special” things in the lbu archive.
Perhaps
/etc/lbu/pre-package.d/*
and
/etc/lbu/post-package.d/*
with run-scripts rules (like cron)
(from redmine: issue id 220, created on 2009-12-17, closed on 2010-01-20)
- Changesets:
- Revision 63f898c17a41acd7d22657209fed005ae3c55fcd by Natanael Copa on 2009-12-17T11:12:24Z:
lbu: implement support for lbu package pre/post hooks
scripts in /etc/lbu/pre-package.d/ will be executed prior creating the
tar ball and scripts in /etc/lbu/post-package.d/ will be executed after.
if pre-scripts fails, then will package not be created.
ref #220
- Revision b25b80ea on 2009-12-17T14:59:05Z:
main/alpine-conf: upgrade to 2.0
fixes #91
fixes #220
- Revision 92dd4f0a on 2009-12-17T15:02:14Z:
main/alpine-conf: upgrade to 2.0
fixes #91
fixes #220
(cherry picked from commit b25b80ea9b361aef18289e51433ef275a50a0fea)