Changeset 2260

Show
Ignore:
Timestamp:
07/10/08 23:37:29 (5 months ago)
Author:
anarcat
Message:

security precaution: leave the my.cnf readable only to the webserver. we're protected by the openbasedir

Files:

Legend:

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

    r2157 r2260  
    9292    # * print the result (;p) 
    9393    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` 
     94    chown root:www-data /etc/alternc/my.cnf 
     95    chmod 640 /etc/alternc/my.cnf 
    9496fi 
    9597