Skip to content
Snippets Groups Projects
Commit c1e61705 authored by Michael Banck's avatar Michael Banck
Browse files

pg_createcluster: Do not remove existing data directory on failure. (Closes: #105630)

parent b16caf2c
No related branches found
No related tags found
1 merge request!19pg_createcluster: Do not remove existing data directory on failure. (Closes: #105630)
Pipeline #620668 passed
......@@ -361,6 +361,8 @@ if (-f "$datadir/PG_VERSION") {
($owneruid, $ownergid) = (stat "$datadir/PG_VERSION")[4,5];
if ($existingver == $version) {
print "Configuring already existing cluster (configuration: $confdir, data: $datadir, owner: $owneruid:$ownergid)\n";
# Do not remove already existing data directory on errors
$cleanup_cruft = 0;
} else {
error "$datadir contains a version $existingver cluster, but $version was requested";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment