Skip to content

Commit

Permalink
Add library path to ld.so conf for ubuntu 18.04.
Browse files Browse the repository at this point in the history
	modified:   install-lool.sh
  • Loading branch information
RainerEmrich committed Mar 11, 2019
1 parent 3226da6 commit 9052767
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions install-lool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,18 @@ if [ "${LOOL_INSTALLED}" != "1" ] ; then
echo "#######################################################################################"
echo

case ${DIST_ID} in
Ubuntu)
case ${DIST_RELEASE} in
18.04)
echo "# loolwsd default configuration" >/etc/ld.so.conf.d/loolwsd.conf
echo "${LOOL_PREFIX}/lib" >>/etc/ld.so.conf.d/loolwsd.conf
ldconfig
;;
esac
;;
esac

echo "[Unit]" >/lib/systemd/system/loolwsd.service
echo "Description=Collabora Online Office Service" >>/lib/systemd/system/loolwsd.service
echo "After=network.target" >>/lib/systemd/system/loolwsd.service
Expand Down Expand Up @@ -413,6 +425,18 @@ elif [ "${LOOL_VERSION}" != "${LOOL_LAST}" ] ; then
sed --in-place "s#type=\"uint\">0</limit_file_size_mb>#type=\"uint\">${LO_MAX_FILE_SIZE}</limit_file_size_mb>#" ${LOOL_PREFIX}/etc/${LOOL_DISTRO}/loolwsd.xml
sed --in-place "s#type=\"uint\">0</limit_num_open_files>#type=\"uint\">${LO_MAX_FILE_NUM}</limit_num_open_files>#" ${LOOL_PREFIX}/etc/${LOOL_DISTRO}/loolwsd.xml

case ${DIST_ID} in
Ubuntu)
case ${DIST_RELEASE} in
18.04)
echo "# loolwsd default configuration" >/etc/ld.so.conf.d/loolwsd.conf
echo "${LOOL_PREFIX}/lib" >>/etc/ld.so.conf.d/loolwsd.conf
ldconfig
;;
esac
;;
esac

systemctl start loolwsd

echo
Expand Down

0 comments on commit 9052767

Please sign in to comment.