Changeset 998

Show
Ignore:
Timestamp:
04/07/06 23:35:53 (2 years ago)
Author:
joe
Message:

Préparation pour la solution du bogue #318.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/install/upgrades/0.9.5.sh

    r969 r998  
    77chmod 640 /etc/postfix/my* 
    88rm -f /var/alternc/bureau/admin/adm_list2.php 
     9 
     10TMP=`mktemp` 
     11TMP2=`mktemp` 
     12 
     13if [ ! -e /etc/alternc/mysql.cnf ]; then 
     14    grep '^MYSQL_.*$' /etc/alternc/local.sh | sed -e '1 i[client]' -e '/^MYSQL_HOST.*$/ d' -e 's/^MYSQL_CLIENT/MYSQL_HOST/' -e 's/"//g' -e 's/=/ = /g' -e 's/MYSQL_//g' -e 's/^[^=]*/\L\0/' > "$TMP" 
     15 
     16    chgrp www-data "$TMP" 
     17    chmod g+r "$TMP" 
     18    mv "$TMP" /etc/alternc/mysql.cnf 
     19fi 
     20 
     21sed -e 's/^# MySQL configuration$/# Starting with 0.9.5, the MySQL configuration for the support scripts\n# is stored in \/etc\/alternc\/mysql.cnf/' < /etc/alternc/local.sh > "$TMP2" 
     22chgrp www-data "$TMP2" 
     23chmod g+r "$TMP2" 
     24 
     25mv "$TMP2" /etc/alternc/local.sh