Skip to content

Commit 5ba570f

Browse files
committed
update cp command to use -u flag
1 parent 16d31af commit 5ba570f

File tree

1 file changed

+1
-1
lines changed
  • jobs/elasticsearch-platform/templates/bin

1 file changed

+1
-1
lines changed

jobs/elasticsearch-platform/templates/bin/pre-start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ fi
3636

3737
<% if p("elasticsearch.migrate_data") %>
3838
if [[ -d /var/vcap/store/elasticsearch ]]; then
39-
cp -pR /var/vcap/store/elasticsearch/nodes /var/vcap/store/elasticsearch-platform
39+
cp -pRu /var/vcap/store/elasticsearch/nodes /var/vcap/store/elasticsearch-platform
4040
fi
4141
<% end %>

0 commit comments

Comments
 (0)