cf-bosh

Route name across api end points

空扰寡人 提交于 2020-01-25 10:16:08
问题 We have below two end points, having their respective Organization and Space 1) Dev environment: a.b.c.org.cloud 2) Proof of Concept environment(POC): a.b.c.poc.io There is an app( my-cool-app ) with route name my-cool-app.a.b.c.poc.io running in POC environment. Due to code smell issue in this app, route name is decided by app source code(hard coded) but not through manifest.yml of cf push . This lead to same route name my-cool-app.a.b.c.poc.io for my-cool-app in Dev environment. 1) Can app

How to execute the command after sudo su

五迷三道 提交于 2019-12-25 08:27:25
问题 I need to execute "monit restart haproxy" command after sudo su. This is my script.sh sudo su monit restart haproxy. Here if i will execute the script.sh file then it will hang and it is not executing the monit restart haproxy command. Any idea. Thanks in advanced. 回答1: The sudo command is expecting you to enter a password which is why it will hang, you can use a pipe so that the password is passed to the command like this: echo <password> | sudo su monit restart haproxy. 回答2: Here comes some