commit
4c8df63f6a
|
@ -44,7 +44,6 @@ Flarum is the next-generation forum software that makes online discussion fun. I
|
||||||
| **PHP_MEMORY_LIMIT** | PHP memory limit | *optional* | 128M |
|
| **PHP_MEMORY_LIMIT** | PHP memory limit | *optional* | 128M |
|
||||||
| **OPCACHE_MEMORY_LIMIT** | OPcache memory size in megabytes | *optional* | 128
|
| **OPCACHE_MEMORY_LIMIT** | OPcache memory size in megabytes | *optional* | 128
|
||||||
| **LOG_TO_STDOUT** | Enable nginx and php error logs to stdout | *optional* | false
|
| **LOG_TO_STDOUT** | Enable nginx and php error logs to stdout | *optional* | false
|
||||||
| **DO_CHMOD** | Enable or Disable chmod of files to $UID:$GUID | *optional* | true
|
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
|
@ -31,9 +31,15 @@ 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
|
||||||
if [ "$DO_CHMOD" = true ]; then
|
find /flarum ! -user $UID -print0 | xargs -0 -r chown $UID:$GID
|
||||||
chown -R $UID:$GID /flarum /services /var/log /var/lib/nginx
|
find /services ! -user $UID -print0 | xargs -0 -r chown $UID:$GID
|
||||||
fi
|
find /var/log ! -user $UID -print0 | xargs -0 -r chown $UID:$GID
|
||||||
|
find /var/lib/nginx ! -user $UID -print0 | xargs -0 -r chown $UID:$GID
|
||||||
|
|
||||||
|
find /flarum ! -group $GID -print0 | xargs -0 -r chown $UID:$GID
|
||||||
|
find /services ! -group $GID -print0 | xargs -0 -r chown $UID:$GID
|
||||||
|
find /var/log ! -group $GID -print0 | xargs -0 -r chown $UID:$GID
|
||||||
|
find /var/lib/nginx ! -group $GID -print0 | xargs -0 -r chown $UID:$GID
|
||||||
|
|
||||||
cd /flarum/app
|
cd /flarum/app
|
||||||
|
|
||||||
|
@ -109,9 +115,10 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
if [ "$DO_CHMOD" = true ]; then
|
find /flarum ! -user $UID -print0 | xargs -0 -r chown $UID:$GID
|
||||||
chown -R $UID:$GID /flarum
|
find /flarum ! -group $GID -print0 | xargs -0 -r chown $UID:$GID
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# 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