Projects
Kolab:Winterfell
libkolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 15
View file
debian.tar.gz/php-kolab.postinst
Changed
@@ -7,6 +7,8 @@ if [ -d "/etc/php5/mods-available" ]; then inidir=/etc/php5/mods-available +elif [ -d "/etc/php/mods-available" ]; then + inidir=/etc/php/mods-available else inidir=/etc/php5/conf.d fi @@ -35,8 +37,10 @@ fi # Enable the module - if [ -x "$(which php5enmod 2>/dev/null)" ]; then - php5enmod ${module}/${priority:-19} + if [ -x "$(which $php5enmod 2>/dev/null)" ]; then + php5enmod ${module}/${priority:-21} + elif [ -x "$(which $phpenmod 2>/dev/null)" ]; then + phpenmod ${module}/${priority:-21} fi fi # End dummy plugin @@ -64,16 +68,17 @@ fi # Enable the module - if [ -x "$(which php5enmod 2>/dev/null)" ]; then - php5enmod ${module}/${priority:-21} - fi + if [ -x "$(which $php5enmod 2>/dev/null)" ]; then + php5enmod ${module}/${priority:-21} + elif [ -x "$(which $phpenmod 2>/dev/null)" ]; then + phpenmod ${module}/${priority:-21} fi if [ "$1" = "configure" ]; then # make sure that kolabformat.so is loaded after dummy.so, see #2050 - sed -i "s/extension=dummy.so/extension=dummy.so\nextension=kolabformat.so/" /usr/share/php5/kolab/kolab.ini - sed -i "s/extension=kolabformat.so/;extension=kolabformat.so/" /usr/share/php5/kolab/kolabformat.ini + sed -i "s/extension=dummy.so/extension=dummy.so\nextension=kolabformat.so/" $inidir/kolab.ini || echo "cannot find $inidir/kolab.ini" + sed -i "s/extension=kolabformat.so/;extension=kolabformat.so/" $inidir/kolabformat.ini || echo "cannot find $inidir/kolabformat.ini" fi
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.