git: 6b61382523da - main - www/nextcloud: Fix config permissions

From: Bernard Spil <brnrd_at_FreeBSD.org>
Date: Sun, 25 Aug 2024 09:56:26 UTC
The branch main has been updated by brnrd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6b61382523dabeddd719fdc0f363517ed298fd42

commit 6b61382523dabeddd719fdc0f363517ed298fd42
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2024-08-25 09:55:21 +0000
Commit:     Bernard Spil <brnrd@FreeBSD.org>
CommitDate: 2024-08-25 09:55:21 +0000

    www/nextcloud: Fix config permissions
    
    * Nextcloud modifies the config file at runtime
    
    Reported by:    Thierry Thomas
---
 www/nextcloud/pkg-plist | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/nextcloud/pkg-plist b/www/nextcloud/pkg-plist
index 2de20e1b633a..aba9c5ec76e9 100644
--- a/www/nextcloud/pkg-plist
+++ b/www/nextcloud/pkg-plist
@@ -1,4 +1,4 @@
 bin/occ
 @sample(,%%NEXTCLOUD_GROUPNAME%%,644) %%WWWDIR%%/.htaccess.dist %%WWWDIR%%/.htaccess
 @(%%NEXTCLOUD_USERNAME%%,%%NEXTCLOUD_GROUPNAME%%,664) %%WWWDIR%%/.user.ini
-@sample %%WWWDIR%%/config/config.sample.php %%WWWDIR%%/config/config.php
+@sample(%%NEXTCLOUD_USERNAME%%,%%NEXTCLOUD_GROUPNAME%%,640) %%WWWDIR%%/config/config.sample.php %%WWWDIR%%/config/config.php