All pastes #807252 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-12-06 11:24 UTC
rendered paste body
if [ `psql -h 127.0.0.1 -U postgres template1 -c "SELECT encoding, datname FROM pg_database;"|grep postgres|awk '{print $1}'` = 6 ]
then
    sed -i 's/'`grep DB_UTF8 /usr/share/mastercom2/configuration/conf.php`'/define('"'DB_UTF8','true'"');/' /usr/share/mastercom2/configuration/conf.php
fi