From b4141e211928e9aa47d2c4febbec5ac75935d046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20D=C3=A9siles?= <1536672+jokesterfr@users.noreply.github.com> Date: Fri, 16 Aug 2024 20:55:06 +0200 Subject: [PATCH] fix: set uid gid of www-data to 1000 --- assets/alpine-base-install.sh | 6 +++++- assets/debian-base-install.sh | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/alpine-base-install.sh b/assets/alpine-base-install.sh index 245f856..1611ecf 100755 --- a/assets/alpine-base-install.sh +++ b/assets/alpine-base-install.sh @@ -9,7 +9,11 @@ apk --no-cache add -U \ php-common php-iconv php-gd mariadb-client sudo libjpeg libxml2 \ build-base linux-headers freetype-dev zlib-dev libjpeg-turbo-dev \ libpng-dev oniguruma-dev libzip-dev icu-dev libmcrypt-dev libxml2-dev \ - openssh-client libcap + openssh-client libcap shadow + +# Help mapping to Linux users' host +usermod -u 1000 www-data +groupmod -g 1000 www-data # Configure php-fpm and nginx /tmp/php-configuration.sh diff --git a/assets/debian-base-install.sh b/assets/debian-base-install.sh index ac48956..dfade5e 100755 --- a/assets/debian-base-install.sh +++ b/assets/debian-base-install.sh @@ -55,6 +55,10 @@ apt-get install --no-install-recommends -qqy \ libmcrypt-dev \ "$LIB_XML_DEV" +# Help mapping to Linux users' host +usermod -u 1000 www-data +groupmod -g 1000 www-data + # Configure php-fpm and nginx /tmp/php-configuration.sh rm -rf /var/log/php* /etc/php*/php-fpm.conf /etc/php*/php-fpm.d