Fix server socket path in dry-run mode
Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
This commit is contained in:
parent
a4454c9153
commit
7cd65267e9
|
@ -72,7 +72,7 @@ def main():
|
||||||
opts, unknown = parser.parse_known_args(args)
|
opts, unknown = parser.parse_known_args(args)
|
||||||
if opts.socket is None:
|
if opts.socket is None:
|
||||||
need_start_server = True
|
need_start_server = True
|
||||||
server_output_dir = '/tmp/.subiquity'
|
server_output_dir = '.subiquity'
|
||||||
sock_path = os.path.join(server_output_dir, 'socket')
|
sock_path = os.path.join(server_output_dir, 'socket')
|
||||||
if os.path.exists('.subiquity/run/subiquity/server-state'):
|
if os.path.exists('.subiquity/run/subiquity/server-state'):
|
||||||
os.unlink('.subiquity/run/subiquity/server-state')
|
os.unlink('.subiquity/run/subiquity/server-state')
|
||||||
|
|
Loading…
Reference in New Issue