fixed typo in swift-init
This commit is contained in:
parent
4ccd5fafda
commit
d8accbde75
@ -74,7 +74,7 @@ def do_start(server, once=False):
|
|||||||
dir, file = os.path.split(pid_file)
|
dir, file = os.path.split(pid_file)
|
||||||
if not os.path.exists(dir):
|
if not os.path.exists(dir):
|
||||||
try:
|
try:
|
||||||
os.mkdirs(dir)
|
os.makedirs(dir)
|
||||||
except OSError, err:
|
except OSError, err:
|
||||||
if err.errno == errno.EACCES:
|
if err.errno == errno.EACCES:
|
||||||
sys.exit('Unable to create %s. Running as non-root?' % dir)
|
sys.exit('Unable to create %s. Running as non-root?' % dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user