when resetting plugins, dont copy until onionr is ran again
parent
ee5f4409af
commit
d1f9911fd4
|
@ -30,8 +30,7 @@ def reset():
|
||||||
plugin_dir = home + '/plugins/'
|
plugin_dir = home + '/plugins/'
|
||||||
if not os.path.exists(home): return
|
if not os.path.exists(home): return
|
||||||
if os.path.exists(plugin_dir): shutil.rmtree(plugin_dir)
|
if os.path.exists(plugin_dir): shutil.rmtree(plugin_dir)
|
||||||
|
|
||||||
setup_default_plugins()
|
|
||||||
logger.info('Default plugins have been reset.', terminal=True)
|
logger.info('Default plugins have been reset.', terminal=True)
|
||||||
|
|
||||||
reset.onionr_help = "reinstalls default Onionr plugins (e.g. mail). Should be done after git pulls or plugin modification."
|
reset.onionr_help = "reinstalls default Onionr plugins (e.g. mail). Should be done after git pulls or plugin modification."
|
||||||
|
|
Loading…
Reference in New Issue