fix(): chown & composer

pull/80/head
Magicalex 2021-03-16 21:38:23 +01:00
parent 4be15d95bd
commit 217bb980f0
No known key found for this signature in database
GPG Key ID: A89B48B1788C3CB5
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ sed -i "s/<OPCACHE_MEMORY_LIMIT>/${OPCACHE_MEMORY_LIMIT}/g" /etc/php8/conf.d/00_
# Set permissions for /flarum folder
echo "[INFO] Setting folder permissions"
for folder in /services /var/log /var/lib/nginx; do
for folder in /etc/s6.d /var/log /var/lib/nginx; do
find ${folder} ! -user "${UID}" -exec chown -h "${UID}:${GID}" {} \+
find ${folder} ! -group "${GID}" -exec chown -h "${UID}:${GID}" {} \+
done
@ -96,7 +96,7 @@ if [ -e '/flarum/app/public/assets/rev-manifest.json' ]; then
while read line; do
extension="${extension}${line} "
done < /flarum/app/extensions/list
cmd="composer require ${extension}"
cmd="composer require --update-with-all-dependencies ${extension}"
eval "COMPOSER_CACHE_DIR=${CACHE_DIR} su-exec ${UID}:${GID} ${cmd}"
echo "[INFO] Install extra bundled extensions: DONE"
else