Install akaunting with composer

This commit is contained in:
Bob Mottram 2017-12-20 21:53:18 +00:00
parent 7658403fcc
commit 761bf4ccb4
2 changed files with 6 additions and 0 deletions

View File

@ -311,6 +311,9 @@ function install_akaunting {
chmod g+w /var/www/$AKAUNTING_DOMAIN_NAME/htdocs chmod g+w /var/www/$AKAUNTING_DOMAIN_NAME/htdocs
chown -R www-data:www-data /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 function_check akaunting_create_database
akaunting_create_database akaunting_create_database

View File

@ -976,6 +976,9 @@ function install_composer {
cat /home/$MY_USERNAME/${PROJECT_NAME}/image_build/composer_install | php cat /home/$MY_USERNAME/${PROJECT_NAME}/image_build/composer_install | php
fi fi
fi fi
if [ -f composer.phar ]; then
cp composer.phar composer
fi
php composer.phar install php composer.phar install
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
echo $'Unable to run composer install' echo $'Unable to run composer install'