refactor(): use find to speedup permission assignment #27
parent
9a18d8fedd
commit
80770dd921
|
@ -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
|
sed -i "s/<OPCACHE_MEMORY_LIMIT>/$OPCACHE_MEMORY_LIMIT/g" /etc/php7/conf.d/00_opcache.ini
|
||||||
|
|
||||||
# Set permissions
|
# 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
|
cd /flarum/app
|
||||||
|
|
||||||
|
@ -105,7 +105,8 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set permissions
|
# 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 !
|
# RUN !
|
||||||
exec su-exec $UID:$GID /bin/s6-svscan /services
|
exec su-exec $UID:$GID /bin/s6-svscan /services
|
||||||
|
|
Loading…
Reference in New Issue