Adding postgres users in the PKGBUILD

This commit is contained in:
Zoe Roux 2021-01-12 21:58:42 +01:00
parent 4932dc8cf1
commit d4d2d30caa
2 changed files with 4 additions and 4 deletions

View File

@ -10,6 +10,7 @@ license=("GPLv3")
groups=()
depends=("dotnet-runtime>=3" "aspnet-runtime>=3")
makedepends=("dotnet-sdk>=3" "cmake" "gcc" "make" "npm" "git")
install="kyoo.install"
source=("git+https://github.com/AnonymusRaccoon/Kyoo" #tag=v${pkgver}
"kyoo.service"
"kyoo.sysusers")
@ -37,7 +38,3 @@ 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
}

3
install/aur/kyoo.install Normal file
View File

@ -0,0 +1,3 @@
post_install() {
sudo -u postgres createuser -d kyoo
}