fix(): composer command for download package

pull/34/head
Magicalex 2018-12-02 16:47:40 +01:00
parent 59d39362de
commit e124204955
No known key found for this signature in database
GPG Key ID: A89B48B1788C3CB5
1 changed files with 4 additions and 3 deletions

View File

@ -80,9 +80,10 @@ if [ -e '/flarum/app/public/assets/installed.txt' ]; then
echo "[INFO] Install extra bundled extensions" echo "[INFO] Install extra bundled extensions"
while read line; do while read line; do
extension="$extension $line" extension="$extension $line"
done < "$LIST_FILE" done < /flarum/app/extensions/list
COMPOSER_CACHE_DIR="$CACHE_DIR" su-exec $UID:$GID composer require "$extension" command="composer require $extension"
echo "[INFO] Install extra bundled extensions. DONE." COMPOSER_CACHE_DIR="$CACHE_DIR" su-exec $UID:$GID $command
echo "[INFO] Install extra bundled extensions: DONE."
else else
echo "[INFO] No installed extensions" echo "[INFO] No installed extensions"
fi fi