Browse Source

create .env file for handlers from .env.example

blezz-tech 5 hours ago
parent
commit
6fa512ce76
1 changed files with 9 additions and 0 deletions
  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
+