Skip to content

Commit

Permalink
fix utf8/en issues in postgres in install script
Browse files Browse the repository at this point in the history
  • Loading branch information
ajacksified committed Sep 17, 2014
1 parent c861138 commit db9e6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-reddit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ IS_DATABASE_CREATED=$(sudo -u postgres psql -t -c "$SQL")

if [ $IS_DATABASE_CREATED -ne 1 ]; then
cat <<PGSCRIPT | sudo -u postgres psql
CREATE DATABASE reddit WITH ENCODING = 'utf8' TEMPLATE template0;
CREATE DATABASE reddit WITH ENCODING = 'utf8' TEMPLATE template0 LC_COLLATE='en_US.utf8' LC_CTYPE='en_US.utf8';
CREATE USER reddit WITH PASSWORD 'password';
PGSCRIPT
fi
Expand Down

0 comments on commit db9e6e2

Please sign in to comment.