Browse Source

🐛: fix builds launch and domain

ulyc 2 years ago
parent
commit
90de392950
1 changed files with 3 additions and 1 deletions
  1. 3 1
      init.sh

+ 3 - 1
init.sh

@@ -77,7 +77,7 @@ function generate_launch_shell() {
 
 
     m_domain="http://$m.$domain_name"
     m_domain="http://$m.$domain_name"
 
 
-    if [[ "$domain_name"  == "http://localhost" ]]; then
+    if [[ "$domain_name"  == "http://127.0.0.1" ]]; then
          m_domain=$domain_name:$mp
          m_domain=$domain_name:$mp
     fi
     fi
 
 
@@ -85,6 +85,8 @@ function generate_launch_shell() {
     sed -i "s@$tp@$m_domain@" config.ini
     sed -i "s@$tp@$m_domain@" config.ini
   done
   done
   sed "s/{{PORTS}}/5001-500$md_count:5001-500$md_count/" ./template/docker-compose.yml.template >docker-compose.yml
   sed "s/{{PORTS}}/5001-500$md_count:5001-500$md_count/" ./template/docker-compose.yml.template >docker-compose.yml
+  #  fix builds launch
+  sed -i "s/buildssrht/buildsrht/" start.sh
   echo "tail -f /dev/null" >>start.sh
   echo "tail -f /dev/null" >>start.sh
 }
 }