1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

security/vaultwarden: fix packaging

The ownership can and should only be done in the plist never directly
in the make targets, make package should be executable as a regular user
and this is the case in the cluster)

PR:		276998
Reported by:	freebsd@rail.eu.org
This commit is contained in:
Baptiste Daroussin 2024-02-14 13:37:58 +01:00
parent d798052af4
commit f8bbc28c40
2 changed files with 1 additions and 5 deletions

View File

@ -68,7 +68,6 @@ CARGO_INSTALL_ARGS+= --config profile.release.strip=true
pre-install:
${MKDIR} ${STAGEDIR}/${WWWDIR}/data
${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}/${WWWDIR}/data
# @${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST}
# @${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST}
# @${ECHO_CMD} "@mode 755" >> ${PLIST}

View File

@ -2,7 +2,4 @@ bin/vaultwarden
etc/rc.conf.d/vaultwarden.sample
etc/rc.d/vaultwarden
@dir %%ETCDIR%%/rc.conf.d
@owner www
@group www
@mode 755
@dir %%WWWDIR%%/data
@dir(www,www,755) %%WWWDIR%%/data