1
0
ulyc 2 лет назад
Родитель
Сommit
c7094cc342
2 измененных файлов с 4 добавлено и 12 удалено
  1. 4 4
      init.sh
  2. 0 8
      start.sh

+ 4 - 4
init.sh

@@ -48,12 +48,12 @@ function progress() {
 }
 
 function generate_config() {
-  service_key=$(grep <genkeys "Service" | awk -F: '{sub(/[[:blank:]]*/,"");print $2}')
-  network_key=$(grep <genkeys "Network" | awk -F: '{sub(/[[:blank:]]*/,"");print $2}')
-  webhook_key=$(grep <genkeys "Webhook Private" | awk -F: '{sub(/[[:blank:]]*/,"");print $2}')
+  service_key=$(grep <genkeys "Service" | awk -F: '{gsub(/[[:blank:]]*/,"");print $2}')
+  network_key=$(grep <genkeys "Network" | awk -F: '{gsub(/[[:blank:]]*/,"");print $2}')
+  webhook_key=$(grep <genkeys "Webhook Private" | awk -F: '{gsub(/[[:blank:]]*/,"");print $2}')
   sed "s/{{SERVICE_KEY}}/$service_key/" ./template/config.ini.template >config.ini
   sed -i "s/{{NETWORK_KEY}}/$network_key/" config.ini
-  sed -i "s/{{WEBHOOK_KEY}}/$webhook_key/" config.ini
+  sed -i "s@{{WEBHOOK_KEY}}@$webhook_key@" config.ini
   sed -i "s@{{DOMAIN}}@$domain_name@" config.ini
 }
 

+ 0 - 8
start.sh

@@ -1,8 +0,0 @@
-/usr/bin/gunicorn metasrht.app:app -b 0.0.0.0:5001
-/usr/bin/gunicorn gitsrht.app:app -b 0.0.0.0:5002
-/usr/bin/gunicorn hgsrht.app:app -b 0.0.0.0:5003
-/usr/bin/gunicorn buildssrh.app:app -b 0.0.0.0:5004
-/usr/bin/gunicorn listssrht.app:app -b 0.0.0.0:5005
-/usr/bin/gunicorn mansrht.app:app -b 0.0.0.0:5006
-/usr/bin/gunicorn pastesrht.app:app -b 0.0.0.0:5007
-/usr/bin/gunicorn todosrht.app:app -b 0.0.0.0:5008