Changeset 5252


Ignore:
Timestamp:
Jun 22, 2017, 8:46:25 AM (18 months ago)
Author:
hectorgh
Message:

Fixing apache2-lliurex instance pid

Location:
php5-lliurex-compat/fuentes/debian
Files:
1 deleted
1 edited

Legend:

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

    r1830 r5252  
    4141    fi
    4242    bash /usr/share/doc/apache2/examples/setup-instance lliurex
     43}
     44fix_apache_envvars(){
     45    FILE="/etc/apache2-lliurex/envvars"
     46    rc=0
     47    grep "APACHE_PID_FILE" $FILE | grep "lliurex" || rc=1
     48    if [ $rc -eq 1 ]; then
     49        sed -i "s/xport APACHE_PID_FILE=\/var\/run\/apache2\/apache2\$SUFFIX.pid/export APACHE_PID_FILE=\/var\/run\/apache2-lliurex\/apache2\$SUFFIX.pid/g" $FILE
     50    fi
     51
    4352}
    4453change_ports(){
     
    136145        setup_apache
    137146        change_ports
     147        fix_apache_envvars
    138148        fix_mods
    139149        echo "Enabling multi-site services"
Note: See TracChangeset for help on using the changeset viewer.