mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-23 15:30:34 -04:00
Initing postgres database on install
This commit is contained in:
parent
047ea1a3f0
commit
112f59a672
@ -26,6 +26,8 @@ rm -rf %{buildroot}
|
|||||||
/usr/lib/tmpfiles.d/kyoo.conf
|
/usr/lib/tmpfiles.d/kyoo.conf
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
sudo postgresql-setup --initdb 2> /dev/null || true
|
||||||
|
sudo systemctl start postgresql
|
||||||
sudo -u postgres psql << "EOF"
|
sudo -u postgres psql << "EOF"
|
||||||
DO $$
|
DO $$
|
||||||
BEGIN
|
BEGIN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user