Updated PKGBUILD and systemd service for new config
This commit is contained in:
parent
a06f49c2a5
commit
661d2e6a05
2 changed files with 3 additions and 3 deletions
4
PKGBUILD
4
PKGBUILD
|
@ -14,7 +14,7 @@ makedepends=("git")
|
|||
optdepends=("postgresql: database")
|
||||
backup=("etc/${pkgname%-git}.env")
|
||||
source=(
|
||||
"${pkgname}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git"
|
||||
"${pkgname}::git+https://git.edgarpierre.fr/edpibu/nummi"
|
||||
"${pkgname%-git}.service"
|
||||
"${pkgname%-git}.tmpfiles"
|
||||
"${pkgname%-git}.sysusers"
|
||||
|
@ -38,7 +38,7 @@ package() {
|
|||
install -Dm644 ${pkgname%-git}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname%-git}.conf
|
||||
install -Dm644 ${pkgname%-git}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname%-git}.conf
|
||||
install -Dm644 ${pkgname%-git}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname%-git}.conf
|
||||
install -Dm750 ${pkgname%-git}.env -t "${pkgdir}"/etc/
|
||||
install -Dm750 config.toml -t "${pkgdir}"/etc/${pkgname%-git}/config.toml
|
||||
|
||||
cd ${pkgname}/${pkgname%-git}
|
||||
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname%-git}/{}" \;
|
||||
|
|
|
@ -8,7 +8,7 @@ User=nummi
|
|||
Group=nummi
|
||||
RuntimeDirectory=nummi
|
||||
WorkingDirectory=/usr/share/webapps/nummi
|
||||
EnvironmentFile=/etc/nummi.env
|
||||
Environment=NUMMI_CONFIG=/etc/nummi/config.toml
|
||||
ExecStartPre=/usr/bin/python manage.py migrate
|
||||
ExecStartPre=/usr/bin/python manage.py collectstatic --noinput
|
||||
ExecStart=/usr/bin/uvicorn nummi.asgi:application --uds /run/nummi/nummi.socket
|
||||
|
|
Loading…
Reference in a new issue