Updated PKGBUILD and systemd service for new config

This commit is contained in:
Edgar P. Burkhart 2022-12-29 17:45:56 +01:00
parent a06f49c2a5
commit 28db9c07c5
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 4 additions and 4 deletions

View file

@ -14,12 +14,12 @@ makedepends=("git")
optdepends=("postgresql: database") optdepends=("postgresql: database")
backup=("etc/${pkgname%-git}.env") backup=("etc/${pkgname%-git}.env")
source=( 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}.service"
"${pkgname%-git}.tmpfiles" "${pkgname%-git}.tmpfiles"
"${pkgname%-git}.sysusers" "${pkgname%-git}.sysusers"
"${pkgname%-git}.nginx" "${pkgname%-git}.nginx"
"${pkgname%-git}.env" "config.toml"
) )
b2sums=('SKIP' b2sums=('SKIP'
'9e9b62a141bb4594dc203978d5c56dd397ed6c095e6f83fdea07ded2fa46dd2e052aa8f80729a3b612e3773aa487660fcca791079ad4885b825c9c831df61b45' '9e9b62a141bb4594dc203978d5c56dd397ed6c095e6f83fdea07ded2fa46dd2e052aa8f80729a3b612e3773aa487660fcca791079ad4885b825c9c831df61b45'
@ -38,7 +38,7 @@ package() {
install -Dm644 ${pkgname%-git}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname%-git}.conf 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}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname%-git}.conf
install -Dm644 ${pkgname%-git}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${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} cd ${pkgname}/${pkgname%-git}
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname%-git}/{}" \; find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname%-git}/{}" \;

View file

@ -8,7 +8,7 @@ User=nummi
Group=nummi Group=nummi
RuntimeDirectory=nummi RuntimeDirectory=nummi
WorkingDirectory=/usr/share/webapps/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 migrate
ExecStartPre=/usr/bin/python manage.py collectstatic --noinput ExecStartPre=/usr/bin/python manage.py collectstatic --noinput
ExecStart=/usr/bin/uvicorn nummi.asgi:application --uds /run/nummi/nummi.socket ExecStart=/usr/bin/uvicorn nummi.asgi:application --uds /run/nummi/nummi.socket