Initialize postgres to use utf8
This commit is contained in:
parent
49a48fe340
commit
4ba07fdd86
|
@ -16,6 +16,7 @@ preinstall:
|
||||||
postinstall: $(post_files)
|
postinstall: $(post_files)
|
||||||
chroot $(CHROOT) $(EMERGE) -n $(USEPKG) =dev-db/postgresql-server-$(PGVER)*
|
chroot $(CHROOT) $(EMERGE) -n $(USEPKG) =dev-db/postgresql-server-$(PGVER)*
|
||||||
chroot $(CHROOT) passwd -d postgres
|
chroot $(CHROOT) passwd -d postgres
|
||||||
|
echo 'PG_INITDB_OPTS="--locale=en_US.UTF-8"' >> $(CHROOT)/etc/conf.d/postgresql-$(PGVER)
|
||||||
yes | chroot $(CHROOT) $(EMERGE) --config =postgresql-server-$(PGVER)*
|
yes | chroot $(CHROOT) $(EMERGE) --config =postgresql-server-$(PGVER)*
|
||||||
chroot $(CHROOT) rc-update add postgresql-$(PGVER) default
|
chroot $(CHROOT) rc-update add postgresql-$(PGVER) default
|
||||||
chroot $(CHROOT) getent passwd $(TP_USER) || \
|
chroot $(CHROOT) getent passwd $(TP_USER) || \
|
||||||
|
|
Loading…
Reference in New Issue