fix(): current folder for composer

pull/34/head
Magicalex 2018-11-30 05:24:19 +01:00
parent 92e54a64dd
commit cad880104c
No known key found for this signature in database
GPG Key ID: A89B48B1788C3CB5
3 changed files with 7 additions and 2 deletions

View File

@ -138,10 +138,11 @@ docker-compose up -d
:warning: Disable 3rd party extensions prior to upgrading in panel admin. :warning: Disable 3rd party extensions prior to upgrading in panel admin.
Add install.txt file in assets folder Add installed.txt file in assets folder
``` ```
touch /mnt/docker/flarum/assets/installed.txt touch /mnt/docker/flarum/assets/installed.txt
chown $UID: /mnt/docker/flarum/assets/installed.txt chown $UID:$GID /mnt/docker/flarum/assets/installed.txt
``` ```
Remove old assets Remove old assets

View File

@ -8,6 +8,8 @@ CEND="${CSI}0m"
CRED="${CSI}1;31m" CRED="${CSI}1;31m"
CGREEN="${CSI}1;32m" CGREEN="${CSI}1;32m"
cd /flarum/app
# Composer cache dir and packages list paths # Composer cache dir and packages list paths
CACHE_DIR=/flarum/app/extensions/.cache CACHE_DIR=/flarum/app/extensions/.cache
LIST_FILE=/flarum/app/extensions/list LIST_FILE=/flarum/app/extensions/list

View File

@ -36,6 +36,8 @@ if [ "$LOG_TO_STDOUT" = true ]; then
sed -i "s/.*error_log.*$/error_log = \/dev\/stdout/" /etc/php7/php-fpm.conf sed -i "s/.*error_log.*$/error_log = \/dev\/stdout/" /etc/php7/php-fpm.conf
fi fi
cd /flarum/app
# Custom repositories (eg. for privates extensions) # Custom repositories (eg. for privates extensions)
if [ -f '/flarum/app/extensions/composer.repositories.txt' ]; then if [ -f '/flarum/app/extensions/composer.repositories.txt' ]; then
while read line; do while read line; do