Skip to content

Commit

Permalink
[MultiDB] using cp -u option to overwrite older file only
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhangalibaba committed Dec 6, 2020
1 parent 956577c commit 99c6a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockers/docker-database/docker-database-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ do
mkdir -p /var/lib/$inst
if [[ -f $DUMPFILE ]]; then
# copy warmboot rdb file into each new instance location
cp -n $DUMPFILE /var/lib/$inst/dump.rdb
cp -u $DUMPFILE /var/lib/$inst/dump.rdb
else
echo -n > /var/lib/$inst/dump.rdb
fi
Expand Down

0 comments on commit 99c6a3c

Please sign in to comment.