Changeset 2117 for alternc/trunk/debian/postinst
- Timestamp:
- 04/13/08 06:35:19 (8 months ago)
- Files:
-
- alternc/trunk/debian/postinst (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/debian/postinst
r2108 r2117 84 84 DEFAULT_MX="" 85 85 86 # MySQL configuration 87 MYSQL_HOST="" 88 MYSQL_DATABASE="" 89 MYSQL_USER="" 90 MYSQL_PASS="" 86 # Note: MySQL username/password configuration now stored in /etc/alternc/my.cnf 87 91 88 # quels clients mysql sont permis (%, localhost, etc) 92 89 MYSQL_CLIENT="" … … 120 117 update_var alternc/bind_internal BIND_INTERNAL 121 118 update_var alternc/default_mx DEFAULT_MX 122 update_var alternc/mysql/host MYSQL_HOST123 update_var alternc/mysql/db MYSQL_DATABASE124 update_var alternc/mysql/user MYSQL_USER125 update_var alternc/mysql/password MYSQL_PASS126 119 update_var alternc/mysql/client MYSQL_CLIENT 127 120 update_var alternc/alternc_location ALTERNC_LOC … … 130 123 mv -f $CONFIGFILE.tmp $CONFIGFILE 131 124 125 # Setup grants 126 db_get "alternc/mysql/host" 127 MYSQL_HOST="$RET" 128 if [ "$MYSQL_HOST" != "localhost" -o -e /usr/sbin/mysqld ]; then 129 # compatibility shims with my.cnf 130 host="$RET" 131 db_get "alternc/mysql/db" 132 database="$RET" 133 db_get "alternc/mysql/user" 134 user="$RET" 135 db_get "alternc/mysql/password" 136 password="$RET" 137 138 # we source (instead of forking) mysql.sh so that it gets the local environment above 139 . /usr/share/alternc/install/mysql.sh 140 fi 141 132 142 # forget the password 133 143 db_reset alternc/mysql/password || true
