summaryrefslogtreecommitdiffstats
path: root/main/postgresql/postgresql.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/postgresql/postgresql.initd')
-rw-r--r--main/postgresql/postgresql.initd1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/postgresql/postgresql.initd b/main/postgresql/postgresql.initd
index 48b95b3ea..e7941648c 100644
--- a/main/postgresql/postgresql.initd
+++ b/main/postgresql/postgresql.initd
@@ -98,6 +98,7 @@ reload() {
setup() {
ebegin "Creating a new PostgreSQL database cluster"
+ rmdir "${PGDATA}" 2>/dev/null
if [ -d "${PGDATA}" ] ; then
eend 1 "${PGDATA} already exist"
return