diff --git a/PKGBUILD b/PKGBUILD index ff64461..b76c202 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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}/{}" \;