Skip to content

Commit

Permalink
fix: set uid gid of www-data to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
jokesterfr committed Aug 16, 2024
1 parent 1745eee commit b4141e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/alpine-base-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions assets/debian-base-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4141e2

Please sign in to comment.