Ignore:
Timestamp:
04/16/12 16:21:10 (2 years ago)
Author:
squidly
Message:

Dev in progress

File:
1 edited

Legend:

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

    r2997 r3139  
    111111fi 
    112112 
     113if [ -r /etc/alternc/my_mail.cnf ]; then 
     114    # make mysql configuration available as shell variables 
     115    # to convert from .cnf to shell syntax, we: 
     116    # * match only lines with "equal" in them (/=/) 
     117    # * remove whitespace around the = and add a left quote operator ' (;s) 
     118    # * add a right quote operator at the end of line (;s) 
     119    # * convert mysql variables into our MYSQL_ naming convention (;s) 
     120    # * print the result (;p) 
     121    eval `sed -n -e "/=/{s/ *= *\"\?/='/;s/\"\?\$/'/;s/host/MYSQL_HOST/;s/user/MYSQL_USER/;s/password/MYSQL_PASS/;s/database/MYSQL_DATABASE/;p}" /etc/alternc/my.cnf` 
     122    chown root:alterncpanel /etc/alternc/my_mail.cnf 
     123    chmod 640 /etc/alternc/my_mail.cnf 
     124fi 
     125 
    113126WARNING="WARNING: Do not edit this file, edit the one in /etc/alternc/templates and launch alternc.install again." 
    114127 
     
    149162s\\%%dbuser%%\\$MYSQL_USER\\; 
    150163s\\%%dbpwd%%\\$MYSQL_PASS\\; 
     164s\\%%db_mail_user%%\\$MYSQL_MAIL_USER\\; 
     165s\\%%db_mail_pwd%%\\$MYSQL_MAIL_PASS\\; 
    151166s\\%%ALTERNC_LOC%%\\$ALTERNC_LOC\\; 
    152167s\\%%warning_message%%\\$WARNING\\; 
Note: See TracChangeset for help on using the changeset viewer.