Skip to content

Commit 2d6fd72

Browse files
J0WInijel
authored andcommitted
Use "nogroup" as group name
1 parent c706c52 commit 2d6fd72

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RUN set -ex; \
5555
mv phpMyAdmin-$VERSION-all-languages /www; \
5656
rm -rf /www/setup/ /www/examples/ /www/test/ /www/po/ /www/composer.json /www/RELEASE-DATE-$VERSION; \
5757
sed -i "s@define('CONFIG_DIR'.*@define('CONFIG_DIR', '/etc/phpmyadmin/');@" /www/libraries/vendor_config.php; \
58-
chown -R root:nobody /www; \
58+
chown -R nobody:nogroup /www; \
5959
find /www -type d -exec chmod 750 {} \; ; \
6060
find /www -type f -exec chmod 640 {} \; ; \
6161
# Add directory for sessions to allow session persistence

etc/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
user nobody;
1+
user nobody nogroup;
22
worker_processes 4;
33

44
daemon off;

etc/php-fpm.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ log_level = warning
44

55
[www]
66
user = nobody
7-
group = nobody
7+
group = nogroup
88
listen = /var/run/php/php-fpm.sock
99
listen.mode = 0660
1010
chdir = /www

run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ if [ ! -f /etc/phpmyadmin/config.user.inc.php ]; then
1111
fi
1212

1313
mkdir -p /var/nginx/client_body_temp
14-
chown nobody:nobody /sessions /var/nginx/client_body_temp
14+
chown nobody:nogroup /sessions /var/nginx/client_body_temp
1515
mkdir -p /var/run/php/
16-
chown nobody:nobody /var/run/php/
16+
chown nobody:nogroup /var/run/php/
1717
touch /var/log/php-fpm.log
18-
chown nobody:nobody /var/log/php-fpm.log
18+
chown nobody:nogroup /var/log/php-fpm.log
1919

2020
if [ "$1" = 'phpmyadmin' ]; then
2121
exec supervisord --nodaemon --configuration="/etc/supervisord.conf" --loglevel=info

0 commit comments

Comments
 (0)