Skip to content

Commit

Permalink
new pg databases should be created with UTF8 encoding rather than sys…
Browse files Browse the repository at this point in the history
…tem default, which might be something unhelpful like latin1
  • Loading branch information
JoshData authored and amercader committed Oct 19, 2012
1 parent b806bb0 commit d6df800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan_deb/usr/lib/ckan/common.sh
Expand Up @@ -155,7 +155,7 @@ ckan_ensure_db_exists () {
COMMAND_OUTPUT=`sudo -u postgres psql -c "select datname from pg_database where datname='$INSTANCE'"`
if ! [[ "$COMMAND_OUTPUT" =~ ${INSTANCE} ]] ; then
echo "Creating the database ..."
sudo -u postgres createdb -O ${INSTANCE} ${INSTANCE}
sudo -u postgres createdb -O ${INSTANCE} ${INSTANCE} -E utf-8 -l en_US.utf8 -T template0
paster --plugin=ckan db init --config=/etc/ckan/${INSTANCE}/${INSTANCE}.ini
fi
fi
Expand Down

0 comments on commit d6df800

Please sign in to comment.