mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-07 10:14:13 -04:00
Adding a spec file
This commit is contained in:
parent
2358d49323
commit
f07ce17c4e
21
deployment/kyoo.spec
Normal file
21
deployment/kyoo.spec
Normal 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user