Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 636
    • Issues 636
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 193
    • Merge Requests 193
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Issues
  • #220

Closed
Open
Opened Dec 17, 2009 by Nathan Angelacos@nangelDeveloper

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)
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Alpine 1.9
Milestone
Alpine 1.9 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/aports#220