Kaynağa Gözat

handlers env in main install.sh

blezz-tech 2 gün önce
ebeveyn
işleme
86ed311948
2 değiştirilmiş dosya ile 9 ekleme ve 9 silme
  1. 9 0
      bin/install.sh
  2. 0 9
      bin/install_handlers.sh

+ 9 - 0
bin/install.sh

@@ -74,3 +74,12 @@ python manage.py create_metaservice_default_data
 if (($GENERATE_TEST_USERS)); then
     python manage.py create_metaservice_test_users
 fi
+
+# Checking for webservice_running/handlers/.env
+if [ -f webservice_running/handlers/.env ]; then
+    echo "env file for handlers already exists. "
+else
+    echo_warning "Creating env file for handlers."
+    cp webservice_running/handlers/.env.example webservice_running/handlers/.env
+    echo_success "Created env file for handlers."
+fi

+ 0 - 9
bin/install_handlers.sh

@@ -1,13 +1,4 @@
 
-# Checking for webservice_running/handlers/.env
-if [ -f webservice_running/handlers/.env ]; then
-    echo "env file for handlers already exists. "
-else
-    echo_warning "Creating env file for handlers."
-    cp webservice_running/handlers/.env.example webservice_running/handlers/.env
-    echo_success "Created env file for handlers."
-fi
-
 echo_warning "Installation handlers"
 webservice_running/handlers/conf/bin/install.sh