mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 23:50:31 +00:00
Update hostname.py
This commit is contained in:
parent
e0be8f29ee
commit
61e925ada5
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
from websoft9.appmanage.api.utils.log import myLogger
|
||||
from api.utils.log import myLogger
|
||||
from api.utils import shell_execute
|
||||
|
||||
shell_execute.execute_command_output_all("sed -i '/websoft9-appmanage/d' /etc/hosts")
|
||||
shell_execute.execute_command_output_all("echo $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' websoft9-appmanage) websoft9-appmanage >> /etc/hosts")
|
||||
shell_execute.execute_command_output_all("echo $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' websoft9-appmanage) websoft9-appmanage >> /etc/hosts")
|
||||
|
|
Loading…
Reference in a new issue