Skip to content

Commit 44d83f0

Browse files
authored
Merge pull request #418 from yungwine/node-backup
rm creation of node config backup on installation
2 parents 2fb8239 + 7528f13 commit 44d83f0

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

mytoninstaller/config.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,6 @@ def backup_config(local, config_path):
4343
#end define
4444

4545

46-
def BackupVconfig(local):
47-
if local.buffer.only_mtc:
48-
return
49-
local.add_log("Backup validator config file 'config.json' to 'config.json.backup'", "debug")
50-
vconfig_path = local.buffer.vconfig_path
51-
backupPath = vconfig_path + ".backup"
52-
args = ["cp", vconfig_path, backupPath]
53-
subprocess.run(args)
54-
#end define
55-
56-
5746
def BackupMconfig(local):
5847
local.add_log("Backup mytoncore config file 'mytoncore.db' to 'mytoncore.db.backup'", "debug")
5948
mconfig_path = local.buffer.mconfig_path

mytoninstaller/mytoninstaller.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
)
3535
from mytoninstaller.config import (
3636
CreateLocalConfig,
37-
BackupVconfig,
3837
BackupMconfig,
3938
)
4039

@@ -293,7 +292,6 @@ def General(local, console):
293292
FirstNodeSettings(local)
294293
EnableValidatorConsole(local)
295294
EnableLiteServer(local)
296-
BackupVconfig(local)
297295
BackupMconfig(local)
298296
CreateSymlinks(local)
299297
EnableMode(local)

0 commit comments

Comments
 (0)