fix(): chown & composer
parent
4be15d95bd
commit
217bb980f0
|
@ -22,7 +22,7 @@ sed -i "s/<OPCACHE_MEMORY_LIMIT>/${OPCACHE_MEMORY_LIMIT}/g" /etc/php8/conf.d/00_
|
||||||
|
|
||||||
# Set permissions for /flarum folder
|
# Set permissions for /flarum folder
|
||||||
echo "[INFO] Setting folder permissions"
|
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} ! -user "${UID}" -exec chown -h "${UID}:${GID}" {} \+
|
||||||
find ${folder} ! -group "${GID}" -exec chown -h "${UID}:${GID}" {} \+
|
find ${folder} ! -group "${GID}" -exec chown -h "${UID}:${GID}" {} \+
|
||||||
done
|
done
|
||||||
|
@ -96,7 +96,7 @@ if [ -e '/flarum/app/public/assets/rev-manifest.json' ]; then
|
||||||
while read line; do
|
while read line; do
|
||||||
extension="${extension}${line} "
|
extension="${extension}${line} "
|
||||||
done < /flarum/app/extensions/list
|
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}"
|
eval "COMPOSER_CACHE_DIR=${CACHE_DIR} su-exec ${UID}:${GID} ${cmd}"
|
||||||
echo "[INFO] Install extra bundled extensions: DONE"
|
echo "[INFO] Install extra bundled extensions: DONE"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue