Pārlūkot izejas kodu

create .env file for handlers from .env.example

blezz-tech 10 stundas atpakaļ
vecāks
revīzija
6fa512ce76
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9 0
      bin/install.sh

+ 9 - 0
bin/install.sh

@@ -108,3 +108,12 @@ echo_warning "Reloading systemd daemon"
 systemctl daemon-reload
 echo_success "Reloaded systemd daemon"
 
+# 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
+