aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-install
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-11-03 11:08:09 +0000
committermerakor <cem@ckyln.com>2021-11-03 11:08:09 +0000
commit7eb5c092aa24a1ee58e55b86fde907041dd2a3c5 (patch)
tree33099dc5a42cc3b38941fa166b3cb521338558ef /src/cpt-install
parent0be5b545860f71414ede2ae7f842bb4aacf992ab (diff)
downloadcpt-7eb5c092aa24a1ee58e55b86fde907041dd2a3c5.tar.gz
cpt-install: run 'end-install' hook after package installation is complete
FossilOrigin-Name: 477102f4200c7d8c4337e32157e9e43a3596eb70be99b41dc2a51ad21f25f406
Diffstat (limited to 'src/cpt-install')
-rwxr-xr-xsrc/cpt-install4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpt-install b/src/cpt-install
index 44842a3..07c7491 100755
--- a/src/cpt-install
+++ b/src/cpt-install
@@ -27,6 +27,10 @@ for pkg in $order; do pkg_install "$pkg"; done
log "Retrieving post-installation message queue"
unset msg
+# After all the installations are finished, run an end-install hook. There may
+# be some things that we may want to run, but not per package.
+run_hook end-install "" "$CPT_ROOT" root
+
for pkg in $order; do
[ -f "$sys_db/$pkg/message" ] && {
printf '\033[1m%s\n%s\n%s\033[m\n\n' \