File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 7
7
8
8
from common import file
9
9
10
- if json .loads (file .read_file ("./install/install.lock" ))["install" ] == "docker" :
11
- if not os .environ .get ('DOCKER_CONTAINER' , False ):
12
- args = ""
13
- for arg in sys .argv [1 :]:
14
- args = args + " " + arg
15
- os .system ("docker run -it --rm -v {0}:/home/silverblog silverblog/silverblog python3 manage.py{1}'" .format (
16
- os .getcwd (), args ))
17
- exit (0 )
10
+ if os .path .exists ("./install/install.lock" ):
11
+ if json .loads (file .read_file ("./install/install.lock" ))["install" ] == "docker" :
12
+ if not os .environ .get ('DOCKER_CONTAINER' , False ):
13
+ args = ""
14
+ for arg in sys .argv [1 :]:
15
+ args = args + " " + arg
16
+ os .system ("docker run -it --rm -v {0}:/home/silverblog silverblog/silverblog python3 manage.py{1}'" .format (
17
+ os .getcwd (), args ))
18
+ exit (0 )
18
19
lang = None
19
20
if "LANG" in os .environ :
20
21
if "UTF-8" not in os .environ ["LANG" ] and "UTF.8" not in os .environ ["LANG" ]:
You can’t perform that action at this time.
0 commit comments