diff --git a/rootfs/usr/local/bin/run.sh b/rootfs/usr/local/bin/run.sh index e82d8ef..507bab6 100644 --- a/rootfs/usr/local/bin/run.sh +++ b/rootfs/usr/local/bin/run.sh @@ -32,8 +32,12 @@ sed -i "s//$OPCACHE_MEMORY_LIMIT/g" /etc/php7/conf.d/00_op # Set permissions if [ "$DO_CHMOD" = true ]; then - chown -R $UID:$GID /flarum /services /var/log /var/lib/nginx + # chown -R $UID:$GID /flarum /services /var/log /var/lib/nginx fi +find /flarum ! -user $UID -print0 +find /services ! -user $UID -print0 +find /var/log ! -user $UID -print0 +find /var/lib/nginx ! -user $UID -print0 cd /flarum/app @@ -110,8 +114,11 @@ fi # Set permissions if [ "$DO_CHMOD" = true ]; then - chown -R $UID:$GID /flarum + # chown -R $UID:$GID /flarum fi +find /flarum ! -user $UID -print0 + + # RUN ! exec su-exec $UID:$GID /bin/s6-svscan /services