From 4932dc8cf1e1e01df82c6b0f52b898d782bd64e4 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 11 Jan 2021 23:06:05 +0100 Subject: [PATCH] Adding a post install to create a postgres user. Doesn't work. --- install/aur/PKGBUILD | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/aur/PKGBUILD b/install/aur/PKGBUILD index 082b5874..59dc58f3 100644 --- a/install/aur/PKGBUILD +++ b/install/aur/PKGBUILD @@ -37,3 +37,7 @@ package() { install -Dm 644 kyoo.service -t "$pkgdir/usr/lib/systemd/system/" install -Dm 644 kyoo.sysusers "$pkgdir/usr/lib/sysusers.d/kyoo.conf" } + +post_install() { + sudo -u postgres createuser -d kyoo +}