Ticket #1017: apache2_postinst.patch

File apache2_postinst.patch, 1.7 kB (added by anonyme, 6 months ago)
  • debian/postinst

    old new  
    172173    alternc.install 
    173174 
    174175    if [ -x /usr/sbin/apache ]; then 
    175         if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ]; then 
     176        if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ] && [ -e /etc/apache-ssl/conf.d/ ]; then 
    176177            ln -sf /etc/alternc/apache-ssl.conf \ 
    177178                /etc/apache-ssl/conf.d/alternc.conf 
    178179        fi 
    179180 
    180         if [ ! -h /etc/apache/conf.d/alternc.conf ]; then 
     181        if [ ! -h /etc/apache/conf.d/alternc.conf ] && [ -e /etc/apache/conf.d/ ]; then 
    181182            ln -sf /etc/alternc/apache.conf \ 
    182183                /etc/apache/conf.d/alternc.conf 
    183184        fi 
    184185 
    185         if [ ! -h /etc/apache/conf.d/override_php.conf ]; then 
     186        if [ ! -h /etc/apache/conf.d/override_php.conf ] && [ -e /etc/apache/conf.d/ ]; then 
    186187            ln -sf /var/alternc/apacheconf/override_php.conf \ 
    187188                /etc/apache/conf.d/override_php.conf 
    188189        fi 
    189190    fi 
    190191    if [ -x /usr/sbin/apache2 ]; then 
    191         if [ ! -h /etc/apache2/conf.d/alternc.conf ]; then 
     192        if [ ! -h /etc/apache2/conf.d/alternc.conf ] && [ -e /etc/apache2/conf.d/ ]; then 
    192193            ln -sf /etc/alternc/apache.conf \ 
    193                 /etc/apache/conf.d/alternc.conf 
     194                /etc/apache2/conf.d/alternc.conf 
    194195        fi 
    195         if [ ! -h /etc/apache2/conf.d/override_php.conf ]; then 
     196        if [ ! -h /etc/apache2/conf.d/override_php.conf ] && [ -e /etc/apache2/conf.d/ ]; then 
    196197            ln -sf /var/alternc/apacheconf/override_php.conf \ 
    197                 /etc/apache/conf.d/override_php.conf 
     198                /etc/apache2/conf.d/override_php.conf 
    198199        fi 
    199200 
    200201    fi