summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/setup14
1 files changed, 11 insertions, 3 deletions
diff --git a/bin/setup b/bin/setup
index c29117af..f0d860dc 100755
--- a/bin/setup
+++ b/bin/setup
@@ -18,9 +18,17 @@ then
fi
echo "copy config files"
-cp config.json.example config.json
-cp public/js/common.js.example public/js/common.js
-cp .sequelizerc.example .sequelizerc
+if [ ! -f config.json ]; then
+ cp config.json.example config.json
+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"
npm install && bower install