refactor(): use find to speedup permission assignment #27

pull/29/head
Hardware 2018-08-25 08:21:39 +02:00
parent 9a18d8fedd
commit 80770dd921
No known key found for this signature in database
GPG Key ID: EC6DF6F90263EDEA
1 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@ sed -i "s/<PHP_MEMORY_LIMIT>/$PHP_MEMORY_LIMIT/g" /etc/php7/php-fpm.conf
sed -i "s/<OPCACHE_MEMORY_LIMIT>/$OPCACHE_MEMORY_LIMIT/g" /etc/php7/conf.d/00_opcache.ini
# Set permissions
chown -R $UID:$GID /flarum /services /var/log /var/lib/nginx
chown -R $UID:$GID /services /var/log /var/lib/nginx
cd /flarum/app
@ -105,7 +105,8 @@ else
fi
# Set permissions
chown -R $UID:$GID /flarum
find /flarum ! -user $UID -print0 | xargs -0 -r chown $UID:$GID
find /flarum ! -group $GID -print0 | xargs -0 -r chown $UID:$GID
# RUN !
exec su-exec $UID:$GID /bin/s6-svscan /services