summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChengwei Yang <yangchengwei@qiyi.com>2016-03-17 12:02:00 +0800
committerChengwei Yang <yangchengwei@qiyi.com>2016-03-17 12:02:00 +0800
commit6eaede448684cf9654e488474cb7b45a6161107a (patch)
tree403db1d2649972586203dab74d0d0d26caa64c84 /Makefile
parentcba59d4eb6ef0f65304bc72339c676ebfd653e2b (diff)
downloadchat-6eaede448684cf9654e488474cb7b45a6161107a.tar.gz
chat-6eaede448684cf9654e488474cb7b45a6161107a.tar.bz2
chat-6eaede448684cf9654e488474cb7b45a6161107a.zip
Makefile: fix for non-enterprise build
Signed-off-by: Chengwei Yang <yangchengwei@qiyi.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4ae2c3b1f..3ab7ae267 100644
--- a/Makefile
+++ b/Makefile
@@ -131,7 +131,9 @@ package:
sed -i'.bak' 's|bundle.js|bundle-$(BUILD_NUMBER).js|g' $(DIST_PATH)/webapp/dist/root.html
rm $(DIST_PATH)/webapp/dist/root.html.bak
- sudo mv -f $(DIST_PATH)/config/config.json.bak $(DIST_PATH)/config/config.json || echo 'nomv'
+ @if [ "$(BUILD_ENTERPRISE)" = "true" ] && [ -d "$(ENTERPRISE_DIR)" ]; then \
+ sudo mv -f $(DIST_PATH)/config/config.json.bak $(DIST_PATH)/config/config.json || echo 'nomv'; \
+ fi
tar -C dist -czf $(DIST_PATH).tar.gz mattermost