File tree Expand file tree Collapse file tree 2 files changed +22
-13
lines changed Expand file tree Collapse file tree 2 files changed +22
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -70,4 +70,26 @@ function check_php() {
70
70
71
71
echo " Check PHP ${DIST_PHP_VER} Failed. Start installing"
72
72
install_php
73
+ }
74
+
75
+ function check_composer() {
76
+
77
+ export PATH=${OPENSHIFT_HOMEDIR} /app-root/runtime/bin/:${PATH}
78
+ export COMPOSER_HOME=" $OPENSHIFT_DATA_DIR /.composer"
79
+
80
+ if [ ! -f " $OPENSHIFT_DATA_DIR /composer.phar" ]; then
81
+ curl -s https://getcomposer.org/installer | php -- --install-dir=$OPENSHIFT_DATA_DIR
82
+ else
83
+ php $OPENSHIFT_DATA_DIR /composer.phar self-update
84
+ fi
85
+
86
+ ( unset GIT_DIR ; cd $OPENSHIFT_REPO_DIR ; php $OPENSHIFT_DATA_DIR /composer.phar install )
87
+
88
+ }
89
+
90
+ function check_all() {
91
+
92
+ check_php
93
+ check_composer
94
+
73
95
}
You can’t perform that action at this time.
0 commit comments