Changes between Version 15 and Version 16 of SysAdmin/Pootle


Ignore:
Timestamp:
05/21/13 21:39:54 (8 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SysAdmin/Pootle

    v15 v16  
    6666chgrp pootle /var/www/pootle/po
    6767
    68 mysqladmin create pootle -p
     68mysql -u root -p
     69 > CREATE DATABASE pootle CHARACTER SET = 'utf8';
     70 > GRANT ALL PRIVILEGES ON pootle.* TO pootle@localhost IDENTIFIED BY 'pootlepassword';
     71 > FLUSH PRIVILEGES;
    6972
    7073#sed -i "s|'localhost'|'pootle.sahanafoundation.org'|" /var/www/pootle/settings/90-local.conf.sample
    7174sed -i 's|django.db.backends.sqlite3|django.db.backends.mysql|' /var/www/pootle/settings/20-backends.conf
    7275sed -i "s|working_path('dbs/pootle.db')|'pootle'|" /var/www/pootle/settings/20-backends.conf
    73 sed -i "s|'USER': ''|'USER': 'root'|" /var/www/pootle/settings/20-backends.conf
    74 sed -i "s|'PASSWORD': ''|'PASSWORD': 'mysqlrootpw'|" /var/www/pootle/settings/20-backends.conf
     76sed -i "s|'USER': ''|'USER': 'pootle'|" /var/www/pootle/settings/20-backends.conf
     77sed -i "s|'PASSWORD': ''|'PASSWORD': 'pootlepassword'|" /var/www/pootle/settings/20-backends.conf
    7578sed -i "s|'BACKEND': 'django.core.cache.backends.db.DatabaseCache'|'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache'|" /var/www/pootle/settings/20-backends.conf
    7679sed -i "s|'LOCATION': 'pootlecache'|'LOCATION': '127.0.0.1:11211'|" /var/www/pootle/settings/20-backends.conf