Skip to content

Commit

Permalink
Minor AIX packaging enhancements.
Browse files Browse the repository at this point in the history
- Try sudo if /usr/sbin/mkinstallp is not executable directly
  (packaging as a non-root user)
  • Loading branch information
aleibl committed May 8, 2014
1 parent 16c99f9 commit db9b1ca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion AIX/make_AIX_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@ version="$version.0"
cp AIX/override_inventory /tmp
# create the template and building the package
sed "s/VERSIONINFO/$version/" < AIX/lpp_template.in | sed "s#__PACKAGINGDIR__#$PWD#" > AIX/lpp_template
mkinstallp -d . -T AIX/lpp_template
# make sure we can execute mkinstallp ... if not, try sudo
if [ -x /usr/sbin/mkinstallp ]
then
mkinstallp=/usr/sbin/mkinstallp
else
mkinstallp="sudo /usr/sbin/mkinstallp"
fi
$mkinstallp -d . -T AIX/lpp_template

0 comments on commit db9b1ca

Please sign in to comment.