Install akaunting with composer
This commit is contained in:
parent
7658403fcc
commit
761bf4ccb4
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue