From 761bf4ccb4fccb8776bc120bc5a7b25f386d418c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 20 Dec 2017 21:53:18 +0000 Subject: [PATCH] Install akaunting with composer --- src/freedombone-app-akaunting | 3 +++ src/freedombone-utils-web | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/freedombone-app-akaunting b/src/freedombone-app-akaunting index 0832c8e8..3147815c 100755 --- a/src/freedombone-app-akaunting +++ b/src/freedombone-app-akaunting @@ -311,6 +311,9 @@ function install_akaunting { chmod g+w /var/www/$AKAUNTING_DOMAIN_NAME/htdocs chown -R www-data:www-data /var/www/$AKAUNTING_DOMAIN_NAME/htdocs + cd /var/www/$AKAUNTING_DOMAIN_NAME/htdocs + install_composer + function_check akaunting_create_database akaunting_create_database diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index baea51a0..1aa1deea 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -976,6 +976,9 @@ function install_composer { cat /home/$MY_USERNAME/${PROJECT_NAME}/image_build/composer_install | php fi fi + if [ -f composer.phar ]; then + cp composer.phar composer + fi php composer.phar install if [ ! "$?" = "0" ]; then echo $'Unable to run composer install'