standby clone: always ensure directory is created with correct permissions

In Barman mode, if there is an existing, populated data directory, and
the "--force" option is provided, the entire directory was being deleted,
and later recreated as part of the rsync process, but with the default
permissions.

Fix this by recreating the data directory with the correct permissions
after deleting it.
This commit is contained in:
Ian Barwick
2019-04-09 10:51:36 +09:00
parent 77b9887d61
commit ef47589c6b
3 changed files with 28 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
repmgr: ensure BDR2-specific functionality cannot be used on
BDR3 and later (Ian)
repmgr: improve --dry-run behaviour in barman mode (Ian)
repmgr: fix data directory permissions issue in barman mode where
an existing directory is being overwritten (Ian)
4.3 2019-04-02
repmgr: add "daemon (start|stop)" command; GitHub #528 (Ian)