Changeset 3139 for alternc/trunk/install/alternc.install
- Timestamp:
- 04/16/12 16:21:10 (13 months ago)
- File:
-
- 1 edited
-
alternc/trunk/install/alternc.install (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/install/alternc.install
r2997 r3139 111 111 fi 112 112 113 if [ -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 124 fi 125 113 126 WARNING="WARNING: Do not edit this file, edit the one in /etc/alternc/templates and launch alternc.install again." 114 127 … … 149 162 s\\%%dbuser%%\\$MYSQL_USER\\; 150 163 s\\%%dbpwd%%\\$MYSQL_PASS\\; 164 s\\%%db_mail_user%%\\$MYSQL_MAIL_USER\\; 165 s\\%%db_mail_pwd%%\\$MYSQL_MAIL_PASS\\; 151 166 s\\%%ALTERNC_LOC%%\\$ALTERNC_LOC\\; 152 167 s\\%%warning_message%%\\$WARNING\\;
Note: See TracChangeset
for help on using the changeset viewer.
