summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaksim <[email protected]>2022-04-27 22:20:33 +0300
committermaksim <[email protected]>2022-04-27 22:20:33 +0300
commit7e91ce2fe8371e7a7c63072be58e99561ed518e1 (patch)
tree2894224d533010f738529d8fded9190faf2d9c28
parent1448d1a1a9b7821302a59285d6add7cf5b930c78 (diff)
fix initialization_flag
-rwxr-xr-xydb/deploy/local_binary/linux/start.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/deploy/local_binary/linux/start.sh b/ydb/deploy/local_binary/linux/start.sh
index c99ef23b163..d048c71da0c 100755
--- a/ydb/deploy/local_binary/linux/start.sh
+++ b/ydb/deploy/local_binary/linux/start.sh
@@ -6,9 +6,8 @@ fi
if [[ $1 = "disk" ]]; then
need_init=0
if [ ! -f ydb.data ]; then
- echo Data file ydb.data not found, creating ...
+ echo Data file ydb.data not found, creating ...
fallocate -l 64G ydb.data
- need_init=1
if [[ $? -ge 1 ]]; then
if [ -f ydb.data ]; then
rm ydb.data
@@ -16,6 +15,7 @@ if [[ $1 = "disk" ]]; then
echo Error creating data file
exit
fi
+ need_init=1
fi
cfg=disk.yaml
else