teamplayer: fix postgres config

This commit is contained in:
Albert Hopkins 2017-08-18 12:14:34 +00:00
parent adb5f59cd9
commit c79f4776f5
2 changed files with 2 additions and 2 deletions

View File

@ -19,10 +19,9 @@ post_files += issue nginx.conf teamplayer.service
preinstall: preinstall:
postinstall: $(post_files) $(SCROBBLER_AUTH) urls.py postinstall: $(post_files) $(SCROBBLER_AUTH) urls.py
$(inroot) $(EMERGE) --noreplace $(USEPKG) dev-db/postgresql:$(PGVER)
$(inroot) passwd -d postgres $(inroot) passwd -d postgres
$(inroot) eselect postgresql unset
$(inroot) eselect postgresql set $(PGVER) $(inroot) eselect postgresql set $(PGVER)
$(inroot) rm -rf /var/lib/postgresql/$(PGVER)/data
$(inroot) bash -c "echo y |$(EMERGE) --config postgresql:$(PGVER)" $(inroot) bash -c "echo y |$(EMERGE) --config postgresql:$(PGVER)"
ifeq ($(AVAHI),YES) ifeq ($(AVAHI),YES)
$(inroot) $(EMERGE) --noreplace $(USEPKG) net-dns/avahi $(inroot) $(EMERGE) --noreplace $(USEPKG) net-dns/avahi

View File

@ -1,2 +1,3 @@
dev-db/postgresql:9.6
media-sound/mpd media-sound/mpd
www-servers/nginx www-servers/nginx