We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5837b57 commit 56ef77cCopy full SHA for 56ef77c
mytonctrl/scripts/restore_backup.sh
@@ -30,12 +30,11 @@ mkdir $tmp_dir
30
tar -xvzf $name -C $tmp_dir
31
32
if [ ! -d ${tmp_dir}/db ]; then
33
- echo "Error: db/ directory not found in archive. Aborting"
+ echo "Old version of backup detected"
34
+ mkdir ${tmp_dir}/db
35
+ mv ${tmp_dir}/config.json ${tmp_dir}/db
36
+ mv ${tmp_dir}/keyring ${tmp_dir}/db
37
- systemctl start validator
- systemctl start mytoncore
-
38
- exit 1
39
fi
40
41
rm -rf /var/ton-work/db/keyring
0 commit comments