Fix server socket path in dry-run mode

Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
This commit is contained in:
Didier Roche 2021-11-03 10:32:11 +01:00
parent a4454c9153
commit 7cd65267e9
1 changed files with 1 additions and 1 deletions

View File

@ -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')