commit c263c317021652fad53b9e546f1e14cbd3b342d0
parent b40905312fdc1c0bedbb1f3309af974c3e808732
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 22 Sep 2025 14:40:38 +0200
Update the group of deployed files.
In reality, the S_ISGID bit of the parent directory is ignored by the
rsync command. As a result, the copied files may not belong, as
expected, to the group of the parent directory in which the files are
synchronized.
This commit adds the GROUP macro exposed in the config.mk file, which
allows the user to define the group to which the installed files will
belong.
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/templates/Makefile b/templates/Makefile
@@ -41,7 +41,8 @@ clean__:
rm -f $(SHTML:.sh=.md)
install__: $(HTML) $(SIG)
- @rsync -avzrR --delete-after --progress --chmod=Dg+s,g+w,Fg+w \
+ @rsync -avzrR --delete-after --progress \
+ --chmod=Dg+s,g+w,Fg+w --chown=:$(GROUP) \
sty.css $(HTML) $$(sty-list subdir) $(RESOURCES) \
$(PREFIX)
diff --git a/templates/config.mk b/templates/config.mk
@@ -5,5 +5,8 @@ PREFIX = server:/path/to/srv/www/
# Tool used to convert Markdown to HTML
MD2HTML = md2html
+# Group that owns the deployed files
+GROUP = www
+
# Additional resources to install
-RESOURCES=
+RESOURCES =