Autosign: set up the macOS ramdisk after generating key
This commit is contained in:
parent
2b4ecd8455
commit
19bc4af907
2 changed files with 6 additions and 3 deletions
|
|
@ -664,9 +664,14 @@ class Autosign:
|
|||
except:
|
||||
die(2,f"Unable to create wallet directory '{self.wallet_dir}'")
|
||||
|
||||
self.gen_key(no_unmount=True)
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
self.macos_ramdisk_setup()
|
||||
|
||||
remove_wallet_dir()
|
||||
create_wallet_dir()
|
||||
self.gen_key(no_unmount=True)
|
||||
|
||||
wf = find_file_in_dir( get_wallet_cls('mmgen'), self.cfg.data_dir )
|
||||
if wf and keypress_confirm(
|
||||
cfg = self.cfg,
|
||||
|
|
|
|||
|
|
@ -211,8 +211,6 @@ cfg._post_init()
|
|||
if cmd == 'gen_key':
|
||||
asi.gen_key()
|
||||
elif cmd == 'setup':
|
||||
if sys.platform == 'darwin':
|
||||
asi.macos_ramdisk_setup()
|
||||
asi.setup()
|
||||
from .ui import keypress_confirm
|
||||
if cfg.xmrwallets and keypress_confirm( cfg, '\nContinue with Monero setup?', default_yes=True ):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue