Changeset 1009

Show
Ignore:
Timestamp:
04/25/06 02:55:44 (2 years ago)
Author:
anarcat
Message:

use relevant file instead of init.d file to check wether or not to
modify a config file

Closes: #603

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/install/alternc.install

    r1008 r1009  
    1818CONFIG_FILES="" 
    1919 
    20 if [ -x /etc/init.d/apache ]; then 
    21     CONFIG_FILES="$CONFIG_FILES etc/apache/httpd.conf etc/php4/apache/php.ini" 
    22 fi 
    23 if [ -x /etc/init.d/apache-ssl ]; then 
     20if [ -e /etc/apache/httpd.conf ]; then 
     21    CONFIG_FILES="$CONFIG_FILES etc/apache/httpd.conf" 
     22fi 
     23if [ -e /etc/php4/apache/php.ini ]; then 
     24    CONFIG_FILES="$CONFIG_FILES etc/php4/apache/php.ini" 
     25fi 
     26if [ -e /etc/apache-ssl/httpd.conf ]; then 
    2427    CONFIG_FILES="$CONFIG_FILES etc/apache-ssl/httpd.conf" 
    2528fi 
    26 if [ -x /usr/bin/php4-cgi ]; then 
     29if [ -e /etc/php4/cgi/php.ini ]; then 
    2730    CONFIG_FILES="$CONFIG_FILES etc/php4/cgi/php.ini" 
    2831fi 
    29 if [ -x /etc/init.d/bind9 ]; then 
     32if [ -e /etc/bind/named.conf ]; then 
    3033    CONFIG_FILES="$CONFIG_FILES etc/bind/templates/zone.template 
    3134                  etc/bind/templates/named.template etc/bind/named.conf" 
    3235fi 
    33 if [ -x /etc/init.d/courier-pop ]; then 
     36if [ -e /etc/courier/authdaemonrc ]; then 
    3437    CONFIG_FILES="$CONFIG_FILES etc/courier/authdaemonrc 
    3538                  etc/courier/authmysqlrc" 
    3639fi 
    37 if [ -x /etc/init.d/postfix ]; then 
     40if [ -e /etc/postfix/main.cf ]; then 
    3841    CONFIG_FILES="$CONFIG_FILES etc/postfix/main.cf etc/postfix/myalias.cf 
    3942                  etc/postfix/mydomain.cf etc/postfix/mygid.cf 
    4043                  etc/postfix/myvirtual.cf etc/postfix/sasl/smtpd.conf" 
    4144fi 
    42 if [ -x /etc/init.d/proftpd ]; then 
     45if [ -e /etc/proftpd.conf ]; then 
    4346    CONFIG_FILES="$CONFIG_FILES etc/proftpd.conf etc/welcome.msg" 
    4447fi 
    45 if [ -d /usr/share/squirrelmail ]; then 
     48if [ -e /etc/squirrelmail/apache.conf ]; then 
    4649    CONFIG_FILES="$CONFIG_FILES etc/squirrelmail/apache.conf" 
    4750fi 
    4851 
    49 if [ -x /usr/sbin/saslauthd ]; then 
     52if [ -e /etc/default/saslauthd ]; then 
    5053    CONFIG_FILES="$CONFIG_FILES etc/default/saslauthd" 
    5154fi