Adding a spec file

This commit is contained in:
Zoe Roux 2021-04-11 17:40:13 +02:00
parent 2358d49323
commit f07ce17c4e

21
deployment/kyoo.spec Normal file
View File

@ -0,0 +1,21 @@
Name: kyoo
Version: 0.0.1
Release: 1
Summary: A media browser
URL: https://github.com/AnonymusRaccoon/Kyoo
License: GPL-3.0
BuildArch: x86_64
Requires: postgresql-server
%post:
sudo -u postgres psql << "EOF"
DO $$
BEGIN
CREATE ROLE kyoo WITH CREATEDB LOGIN PASSWORD 'kyooPassword';
EXCEPTION WHEN DUPLICATE_OBJECT THEN
RAISE NOTICE 'not creating role kyoo -- it already exists';
END
$$;
EOF