Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions mytoninstaller/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,6 @@ def backup_config(local, config_path):
#end define


def BackupVconfig(local):
if local.buffer.only_mtc:
return
local.add_log("Backup validator config file 'config.json' to 'config.json.backup'", "debug")
vconfig_path = local.buffer.vconfig_path
backupPath = vconfig_path + ".backup"
args = ["cp", vconfig_path, backupPath]
subprocess.run(args)
#end define


def BackupMconfig(local):
local.add_log("Backup mytoncore config file 'mytoncore.db' to 'mytoncore.db.backup'", "debug")
mconfig_path = local.buffer.mconfig_path
Expand Down
2 changes: 0 additions & 2 deletions mytoninstaller/mytoninstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
)
from mytoninstaller.config import (
CreateLocalConfig,
BackupVconfig,
BackupMconfig,
)

Expand Down Expand Up @@ -293,7 +292,6 @@ def General(local, console):
FirstNodeSettings(local)
EnableValidatorConsole(local)
EnableLiteServer(local)
BackupVconfig(local)
BackupMconfig(local)
CreateSymlinks(local)
EnableMode(local)
Expand Down