+mk_links() {
+ if ! [ -f /usr/lib/lx-office-erp/config/lx_office.conf ] ; then
+ ln -s /etc/lx-office-erp/lx_office.conf /usr/lib/lx-office-erp/config/lx_office.conf
+ fi;
+ if ! [ -f /usr/lib/lx-office-erp/config/lx_office.conf.default ] ; then
+ ln -s /etc/lx-office-erp/lx_office.conf.default /usr/lib/lx-office-erp/config/lx_office.conf.default
+ fi;
+ if [ -e /etc/lx-office-erp/authentication.pl ] ; then
+ rm /etc/lx-office-erp/authentication.pl
+ fi
+ if [ -e /etc/apache2 ] ; then
+ if ! [ -f /etc/apache2/conf.d/lx-office-erp.apache2.conf ] ; then
+ ln -s /etc/lx-office-erp/lx-office-erp.apache2.conf /etc/apache2/conf.d/lx-office-erp.apache2.conf
+ fi;
+ fi;
+ if [ -e /etc/cherokee/sites-available ] ; then
+ if ! [ -f /etc/cherokee/sites-available/lx-office-erp.cherokee ] ; then
+ cat /etc/lx-office-erp/lx-office-erp.cherokee.handler >> /etc/cherokee/sites-available/default
+ ln -s /etc/lx-office-erp/lx-office-erp.cherokee /etc/cherokee/sites-available/lx-office-erp.cherokee
+ fi;
+ fi;
+ if [ -e /etc/lighttpd ] ; then
+ if ! [ -f /etc/lighttpd/conf-enabled/lx-office-erp.lighttpd ] ; then
+ ln -s /etc/lx-office-erp/lx-office-erp.lighttpd /etc/lighttpf/conf-enabled/10-lx-office-erp
+ fi;
+ fi;
+}
+reload_web_server() {
+ if [ -f /etc/init.d/apache* ] ; then
+ /etc/init.d/apache* reload
+ fi
+ if [ -f /etc/init.d/cherokee ] ; then
+ /etc/init.d/cherokee reload
+ fi
+ if [ -f /etc/init.d/lighttpd ] ; then
+ /etc/init.d/lighttpd reload
+ fi
+}