瀏覽代碼

Install akaunting with composer

Bob Mottram 7 年之前
父節點
當前提交
761bf4ccb4
共有 2 個檔案被更改,包括 6 行新增0 行删除
  1. 3
    0
      src/freedombone-app-akaunting
  2. 3
    0
      src/freedombone-utils-web

+ 3
- 0
src/freedombone-app-akaunting 查看文件

@@ -311,6 +311,9 @@ function install_akaunting {
311 311
     chmod g+w /var/www/$AKAUNTING_DOMAIN_NAME/htdocs
312 312
     chown -R www-data:www-data /var/www/$AKAUNTING_DOMAIN_NAME/htdocs
313 313
 
314
+    cd /var/www/$AKAUNTING_DOMAIN_NAME/htdocs
315
+    install_composer
316
+
314 317
     function_check akaunting_create_database
315 318
     akaunting_create_database
316 319
 

+ 3
- 0
src/freedombone-utils-web 查看文件

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