Changeset 1022

Show
Ignore:
Timestamp:
04/25/06 18:48:21 (2 years ago)
Author:
anarcat
Message:

remove remaining references to init.d. note that we rely on config files only if we are going to modify
those config files. if we rely on a service being running, we look for it's binary to see if it's installed.

Closes: #603

Files:

Legend:

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

    r1021 r1022  
    166166# Initialize database 
    167167# 
    168 if [ -x /etc/init.d/mysql ]; then 
     168if [ -e /usr/sbin/mysqld ]; then 
    169169    echo "Setup MySQL and database..." 
    170170    /usr/share/alternc/install/mysql.sh "$MYSQL_USER" "$MYSQL_PASS" "$MYSQL_DATABASE" 
     
    198198 
    199199# Attribute the correct rights to critical postfix files 
    200 if [ -x /etc/init.d/postfix ]; then 
     200if [ -e /etc/postfix/myalias.cf -o -e /etc/postfix/mydomain.cf -o -e /etc/postfix/mygid.cf -o -e /etc/postfix/myvirtual.cf ]; then 
    201201    chown root:postfix /etc/postfix/my* 
    202202    chmod 640 /etc/postfix/my* 
    203203fi 
    204204 
    205 if [ -x /etc/init.d/courier-pop ]; then 
     205if [ -e /etc/courier/authmysqlrc ] ; then 
    206206    chown root:root /etc/courier/authmysqlrc 
    207207    chmod 640 /etc/courier/authmysqlrc