Initing postgres database on install

This commit is contained in:
Zoe Roux 2021-04-13 21:37:24 +02:00
parent 047ea1a3f0
commit 112f59a672

View File

@ -26,6 +26,8 @@ rm -rf %{buildroot}
/usr/lib/tmpfiles.d/kyoo.conf
%post
sudo postgresql-setup --initdb 2> /dev/null || true
sudo systemctl start postgresql
sudo -u postgres psql << "EOF"
DO $$
BEGIN