瀏覽代碼

fix install.sh

blezz-tech 1 月之前
父節點
當前提交
cb33fadb4c
共有 3 個文件被更改,包括 8 次插入4 次删除
  1. 3 0
      bin/install.cfg.example
  2. 5 1
      bin/install.sh
  3. 0 3
      core/_settings_vars.py

+ 3 - 0
bin/install.cfg.example

@@ -28,3 +28,6 @@ WEBSERVICE_RUNNING_BRANCH="unstable"
 DESIGN_TEMPLATE_BRANCH="unstable"
 
 LANDING_BRANCH="module-figma"
+
+#Create test users
+GENERATE_TEST_USERS=1

+ 5 - 1
bin/install.sh

@@ -94,4 +94,8 @@ python manage.py collectstatic -l --no-input
 # Seeding data
 python manage.py init_default_data
 
-#cp conf/sharix_open.service /etc/systemd/system/
+if (($GENERATE_TEST_USERS)); then
+    python manage.py init_test_users
+fi
+
+#cp conf/sharix_open.service /etc/systemd/system/

+ 0 - 3
core/_settings_vars.py

@@ -61,6 +61,3 @@ EJ_HOST = "ej.sharix-app.org"
 # Service name that is used in generating ejabber rooms
 METASERVICE_NAME = "open"
 METASERVICE_ID = 1
-
-#Create test users
-GENERATE_TEST_USERS = True