[PC-BSD Commits] r15798 - pcbsd/current/src-sh/pbi-manager
svn at pcbsd.org
svn at pcbsd.org
Tue Mar 13 07:07:40 PDT 2012
Author: kris
Date: 2012-03-13 14:07:40 +0000 (Tue, 13 Mar 2012)
New Revision: 15798
Modified:
pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:
Add function to check about post-install.sh script needing to be run
after doing binary update
Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager 2012-03-13 09:15:25 UTC (rev 15797)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager 2012-03-13 14:07:40 UTC (rev 15798)
@@ -2356,8 +2356,16 @@
newDir="${PBI_DBAPPDIR}/${_pbilow}-${PBI_PATCHVERSION}-${PBI_APPARCH}"
mv "$oldDir" "$newDir"
rm ${newDir}/*.sha1 >/dev/null 2>/dev/null
+
+ # Register the app
pbi_add_register_app
+ # Check if we need to run a post-install.sh script again
+ if [ -e "${newDir}/${MOD_POSTINS}" ] ; then
+ export_script_vars
+ sh "${newDir}/${MOD_POSTINS}"
+ fi
+
# Cleanup after our selves
if [ -d "$PBI_EXTRACTDIR" ] ; then
echo "Cleaning up..."
More information about the Commits
mailing list