Skip to content

Commit

Permalink
Add test for package existence.
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerEmrich committed Mar 2, 2017
1 parent a702a23 commit 3288267
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion install-lool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@ echo
ask_to_continue


if [ ! -f ${PKG_DIR}/${LOOL_VERSION}.tar.xz ] ; then
echo
echo "#######################################################################################"
echo "#"
echo "# ERROR: libreoffice online package not found."
echo "# ${PKG_DIR}/${LOOL_VERSION}.tar.xz missing."
echo "#"
echo "# Exiting..."
echo "#"
echo "#######################################################################################"
echo

exit
fi


if [ "${LOOL_INSTALLED}" != "1" ] ; then

echo
Expand Down Expand Up @@ -89,7 +105,7 @@ if [ "${LOOL_INSTALLED}" != "1" ] ; then
echo

mkdir -p ${LOOL_PREFIX}
tar -C ${LOOL_PREFIX} -xf ${PKG_DIR}/${LOOL_VERSION}.tar.*
tar -C ${LOOL_PREFIX} -xf ${PKG_DIR}/${LOOL_VERSION}.tar.xz
/sbin/setcap cap_fowner,cap_mknod,cap_sys_chroot=ep ${LOOL_PREFIX}/bin/loolforkit
/sbin/setcap cap_sys_admin=ep ${LOOL_PREFIX}/bin/loolmount

Expand Down

0 comments on commit 3288267

Please sign in to comment.