Merge pull request #2259 from andrewsomething/installer-fix
Don't run DeleteInstallerThread() until after set_debconf_selection
This commit is contained in:
@@ -107,14 +107,14 @@ class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||||||
proc.stdin.close()
|
proc.stdin.close()
|
||||||
proc.wait()
|
proc.wait()
|
||||||
|
|
||||||
if 'selfdestruct' in sys.argv:
|
|
||||||
DeleteInstallerThread()
|
|
||||||
|
|
||||||
set_debconf_selection('boolean', 'skip_key_file', 'true')
|
set_debconf_selection('boolean', 'skip_key_file', 'true')
|
||||||
set_debconf_selection('boolean', 'vhost_enable', vhost_enable)
|
set_debconf_selection('boolean', 'vhost_enable', vhost_enable)
|
||||||
set_debconf_selection('boolean', 'web_config', 'false')
|
set_debconf_selection('boolean', 'web_config', 'false')
|
||||||
set_debconf_selection('string', 'hostname', params['hostname'].value)
|
set_debconf_selection('string', 'hostname', params['hostname'].value)
|
||||||
|
|
||||||
|
if 'selfdestruct' in sys.argv:
|
||||||
|
DeleteInstallerThread()
|
||||||
|
|
||||||
self.send_response(200)
|
self.send_response(200)
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
self.wfile.write(json.dumps({'status': 'ok'}))
|
self.wfile.write(json.dumps({'status': 'ok'}))
|
||||||
|
|||||||
Reference in New Issue
Block a user