From f0b45176241becd7373211b9c896ebfa3cdbca40 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 17 Aug 2023 08:47:07 +0200 Subject: [PATCH] npm run build / rollupjs fails, if /usr/share/egroupware-extra is NOT owned by root --- doc/docker/fpm/entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/docker/fpm/entrypoint.sh b/doc/docker/fpm/entrypoint.sh index 07e15bb1d3..a8b242f24d 100755 --- a/doc/docker/fpm/entrypoint.sh +++ b/doc/docker/fpm/entrypoint.sh @@ -38,8 +38,12 @@ test "$PHP_VERSION" = "7.4" || { done } # sources of extra apps merged into our sources (--ignore-existing to NOT overwrite any regular sources!) -test -d /usr/share/egroupware-extra && \ +test -d /usr/share/egroupware-extra && { rsync -a --ignore-existing --exclude .git $EXCLUDE /usr/share/egroupware-extra/ /usr/share/egroupware/ + # npm run build / rollupjs fails, if /usr/share/egroupware-extra is NOT owned by root! + chown -R root:root /usr/share/egroupware + chmod 775 /usr/share/egroupware +} # check and if necessary change ownership of /var/lib/egroupware and our header.inc.php test $(stat -c '%U' /var/lib/egroupware) = "www-data" || \