summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/abslibre-tools/librerelease4
-rw-r--r--src/libretools.conf3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease
index f3f6259..aff13fa 100755
--- a/src/abslibre-tools/librerelease
+++ b/src/abslibre-tools/librerelease
@@ -126,7 +126,7 @@ function main {
load_files libretools
check_vars libretools WORKDIR PARABOLAHOST LIBREDESTDIR SIGID SIGEXT || return 1
# The following variables are actually optional
- #check_vars libretools HOOKPRERELEASE || return 1
+ #check_vars libretools HOOKPRERELEASE HOOKPOSTRELEASE || return 1
"$mode"
}
@@ -168,6 +168,8 @@ function release_packages {
msg "Running db-update on repos"
ssh ${PARABOLAHOST} dbscripts/db-update
+ [[ ! -z ${HOOKPOSTRELEASE} ]] && bash -c "${HOOKPOSTRELEASE}"
+
return 0
}
diff --git a/src/libretools.conf b/src/libretools.conf
index 947ee58..5c6fa67 100644
--- a/src/libretools.conf
+++ b/src/libretools.conf
@@ -50,7 +50,8 @@ ABSLIBREGIT=http://projects.parabolagnulinux.org/abslibre.git
# Run a command before releasing a package (ie. SSH connection, SSH tunnel, etc.)
# This is called by librerelease.
-HOOKPRERELEASE="ssh -fN parabola"
+HOOKPRERELEASE="ssh -fN ${PARABOLAHOST}"
+HOOKPOSTRELEASE="sudo librechroot clean-repo"
################################################################################
# fullpkg/treepkg #