Fix permissions on env file

This commit is contained in:
Edgar P. Burkhart 2022-05-21 18:59:53 +02:00
parent 6d4947bcca
commit 5c9668ca0c
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -11,6 +11,7 @@ depends=(
)
makedepends=('git')
optdepends=("postgresql: database")
backup=("etc/${pkgname%-git}.env")
source=(
"${pkgname}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git"
"${pkgname%-git}.service"
@ -36,7 +37,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 -D ${pkgname%-git}.env -t "${pkgdir}"/etc/
install -Dm750 ${pkgname%-git}.env -t "${pkgdir}"/etc/
cd ${pkgname}/${pkgname%-git}
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname%-git}/{}" \;