mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-16 18:48:40 +00:00
Optimize setup
This commit is contained in:
parent
17c5ece27d
commit
55fe7fbdb8
7
setup.sh
7
setup.sh
|
|
@ -9,9 +9,6 @@ mkdir -p ${ROOT_PATH}
|
|||
rm -r -f ${INSPECTION_PATH}
|
||||
mkdir -p ${INSPECTION_PATH}
|
||||
|
||||
rm -r -f ${TOOLS_PATH}
|
||||
mkdir -p ${TOOLS_PATH}
|
||||
|
||||
# Handling git
|
||||
c=0;
|
||||
for i in "${GITHUB_URL[@]}"
|
||||
|
|
@ -62,6 +59,9 @@ mysql -e 'create database oms;' -u ${DB_USER} -p${DB_PASSWORD}
|
|||
cd ${ROOT_PATH}
|
||||
touch private.php
|
||||
|
||||
if [ ! -d "$TOOLS_PATH" ]; then
|
||||
mkdir -p ${TOOLS_PATH}
|
||||
|
||||
cd ${TOOLS_PATH}
|
||||
|
||||
# Downloading tools
|
||||
|
|
@ -80,6 +80,7 @@ tar -zxvf compiler-latest.tar.gz
|
|||
cp ${BUILD_PATH}/Configs/composer.json ${TOOLS_PATH}/composer.json
|
||||
|
||||
php composer.phar install
|
||||
fi
|
||||
|
||||
ln -s ${TOOLS_PATH}/vendor ${ROOT_PATH}/vendor
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user