Copy config only when file not exist

This commit is contained in:
Yukai Huang 2016-10-05 12:12:21 +08:00
parent 5dfa83d350
commit 934ed7c0d9
1 changed files with 11 additions and 3 deletions

View File

@ -18,9 +18,17 @@ then
fi fi
echo "copy config files" echo "copy config files"
cp config.json.example config.json if [ ! -f config.json ]; then
cp public/js/common.js.example public/js/common.js cp config.json.example config.json
cp .sequelizerc.example .sequelizerc fi
if [ ! -f publis/js/common.js ]; then
cp public/js/common.js.example public/js/common.js
fi
if [ ! -f .sequelizerc ]; then
cp .sequelizerc.example .sequelizerc
fi
echo "install npm and bower packages" echo "install npm and bower packages"
npm install && bower install npm install && bower install