Browse Source

Merge pull request #2897 from PavelSavushkinMix/fix/composer_hirak_prestissimo

fix(hirak/prestissimo package): normalize installation of the package
Shao Yu-Lung (Allen) 4 years ago
parent
commit
0797617cb4
1 changed files with 4 additions and 4 deletions
  1. 4 4
      workspace/Dockerfile

+ 4 - 4
workspace/Dockerfile

@@ -1026,13 +1026,13 @@ RUN if [ ${INSTALL_DEPLOYER} = true ]; then \
 ###########################################################################
 # Prestissimo:
 ###########################################################################
-USER laradock
-
 ARG INSTALL_PRESTISSIMO=false
 
 RUN if [ ${INSTALL_PRESTISSIMO} = true ]; then \
-    # Install Prestissimo
-    composer global require "hirak/prestissimo" \
+    if [ $(php -r "echo COMPOSER_VERSION;") = "1" ]; then \
+      # Install Prestissimo
+      composer global require "hirak/prestissimo" \
+    ;fi \
 ;fi
 
 ###########################################################################