mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 15:40:22 +00:00
Update docker.py
This commit is contained in:
parent
8a0b93ab8b
commit
c520f0e43e
1 changed files with 1 additions and 7 deletions
|
@ -12,13 +12,7 @@ def create_app_directory(app_name):
|
|||
print("checking dir...")
|
||||
path = "/data/apps/"+app_name
|
||||
isexsits = os.path.exists(path)
|
||||
if isexsits:
|
||||
return
|
||||
|
||||
if not os.path.exists("/tmp/docker-library"):
|
||||
shell_execute.execute_command_output_all("git clone https://ghproxy.com/https://github.com/Websoft9/docker-library.git /tmp/docker-library")
|
||||
|
||||
shell_execute.execute_command_output_all("cp -r /tmp/docker-library/apps/"+app_name+" /data/apps")
|
||||
return isexsits
|
||||
|
||||
def check_app_compose(app_name):
|
||||
print("checking port...")
|
||||
|
|
Loading…
Reference in a new issue