Changeset 1510 for php5-lliurex-compat


Ignore:
Timestamp:
May 13, 2016, 9:43:04 AM (4 years ago)
Author:
mabarracus
Message:
 
Location:
php5-lliurex-compat/fuentes/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • php5-lliurex-compat/fuentes/debian/changelog

    r1504 r1510  
     1php5-lliurex-compat (0.5-6) xenial; urgency=medium
     2
     3  * Which fails into zmd, try to fix detection
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Thu, 12 May 2016 15:54:24 +0200
     6
    17php5-lliurex-compat (0.5-5) xenial; urgency=medium
    28
  • php5-lliurex-compat/fuentes/debian/postinst

    r1504 r1510  
    6565fix_mods(){
    6666    echo "Fixing php modules in apache & apache-lliurex"
    67     DISMOD_LLIUREX=$(/usr/bin/which a2dismod-lliurex)
    68     DISMOD=$(/usr/bin/which a2dismod)
    69     #sometimes fails
    70     if [ -z ${DISMOD_LLIUREX} ]; then
    71         if [ -L /usr/local/sbin/a2dismod-lliurex ]; then
    72             DISMOD_LLIUREX=/usr/local/sbin/a2dismod-lliurex
    73         else
     67    #which fails into zmd
     68    if [ -x /usr/sbin/a2dismod ]; then
     69        DISMOD="/usr/sbin/a2dismod"
     70    else
     71        DISMOD=`/usr/bin/which a2dismod`
     72    fi
     73    if [ -L /usr/local/sbin/a2dismod-lliurex ]; then
     74        DISMOD_LLIUREX=/usr/local/sbin/a2dismod-lliurex
     75    else
     76        DISMOD_LLIUREX=`/usr/bin/which a2dismod-lliurex`
     77        if [ -z ${DISMOD_LLIUREX} ]; then
    7478            ln -s /usr/sbin/a2dismod /usr/local/sbin/a2dismod-lliurex
    7579            DISMOD_LLIUREX=/usr/local/sbin/a2dismod-lliurex
    7680        fi
     81       
    7782    fi
    7883    echo "Using: ${DISMOD_LLIUREX} & ${DISMOD}"
Note: See TracChangeset for help on using the changeset viewer.