Ignore:
Timestamp:
09/27/07 10:18:50 (6 years ago)
Author:
benjamin
Message:

ensure that php variable is correctly expanded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/install/alternc.install

    r1946 r1950  
    181181# Apache will not start without this file 
    182182touch /var/alternc/apacheconf/override_php.conf 
    183 php=`ls /usr/lib/apache/*/*php*.so | sed -e 's/^.*libphp\(.\)\.so$/php\1/' | tail -1` 
     183php="`ls /usr/lib/apache/*/*php*.so | sed -e 's/^.*libphp\(.\)\.so$/php\1/' | tail -1`" 
    184184if [ -x /usr/sbin/apache ] 
    185185then 
     
    189189        sed -i -e 's/^\(LoadModule.*config_log.*\)$/LoadModule vhost_alias_module \/usr\/lib\/apache\/1.3\/mod_vhost_alias.so\n\1/' /etc/apache/modules.conf 
    190190    fi 
    191     echo "LoadModule ${php}_module /usr/lib/apache/1.3/lib$php.so" | append_no_dupe /etc/apache/modules.conf 
    192     echo "LoadModule ${php}_module /usr/lib/apache/1.3/lib$php.so" | append_no_dupe /etc/apache-ssl/modules.conf 
     191    echo "LoadModule ${php}_module /usr/lib/apache/1.3/lib${php}.so" | append_no_dupe /etc/apache/modules.conf 
     192    echo "LoadModule ${php}_module /usr/lib/apache/1.3/lib${php}.so" | append_no_dupe /etc/apache-ssl/modules.conf 
    193193    SERVICES="$SERVICES apache apache-ssl" 
    194194fi 
Note: See TracChangeset for help on using the changeset viewer.