FIX debian install when module mysqli is not installed.
This commit is contained in:
parent
75e337e8d9
commit
d54650905b
@ -40,10 +40,28 @@ enable_install_upgrade_wizard() {
|
|||||||
rm -f /var/lib/dolibarr/documents/install.lock
|
rm -f /var/lib/dolibarr/documents/install.lock
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
php_install() {
|
||||||
|
if which php5enmod >/dev/null 2>&1 ;then
|
||||||
|
# php5endmod exists for ubuntu only
|
||||||
|
echo "Enable php module mysqli with php5enmod"
|
||||||
|
php5enmod mysqli
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
apache_install() {
|
apache_install() {
|
||||||
webserver=$1
|
webserver=$1
|
||||||
|
|
||||||
|
# Enable Apache 2 alias module
|
||||||
|
if which a2enmod >/dev/null 2>&1 ;then
|
||||||
|
echo "Enable apache module alias with a2enmod"
|
||||||
|
a2enmod alias
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Enable dolibarr conf
|
||||||
if which a2enconf >/dev/null 2>&1 ;then
|
if which a2enconf >/dev/null 2>&1 ;then
|
||||||
# a2enconf exists for ubuntu only
|
# a2enconf exists for ubuntu only
|
||||||
|
echo "Enable link for Apache config file with a3enconf"
|
||||||
a2enconf dolibarr
|
a2enconf dolibarr
|
||||||
else
|
else
|
||||||
if [ -d /etc/$webserver/conf.d ] && [ ! -e /etc/$webserver/conf.d/dolibarr.conf ]; then
|
if [ -d /etc/$webserver/conf.d ] && [ ! -e /etc/$webserver/conf.d/dolibarr.conf ]; then
|
||||||
@ -88,11 +106,7 @@ case "$1" in
|
|||||||
echo This is not a first install
|
echo This is not a first install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Apache 2 setup
|
php_install
|
||||||
if which a2enmod >/dev/null 2>&1 ;then
|
|
||||||
a2enmod alias
|
|
||||||
fi
|
|
||||||
|
|
||||||
apache_install
|
apache_install
|
||||||
lighttpd_install
|
lighttpd_install
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user