aboutsummaryrefslogtreecommitdiffstats
path: root/main/postgresql-bdr/pgbdr-restore.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-05-08 07:54:05 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-05-08 07:54:54 +0000
commitd1231930d4573229ab6c95b3c9b4852a5125d431 (patch)
tree6d7f80902cc23eadf13dd68b4fa68a76d0973e91 /main/postgresql-bdr/pgbdr-restore.initd
parent336c258db7dffa3d12f2f00cf4524a578e4f48b3 (diff)
downloadaports-d1231930d4573229ab6c95b3c9b4852a5125d431.tar.bz2
aports-d1231930d4573229ab6c95b3c9b4852a5125d431.tar.xz
Revert "main/postgresql-{bdr,bdr-extension}: moved from testing"
Diffstat (limited to 'main/postgresql-bdr/pgbdr-restore.initd')
-rw-r--r--main/postgresql-bdr/pgbdr-restore.initd36
1 files changed, 0 insertions, 36 deletions
diff --git a/main/postgresql-bdr/pgbdr-restore.initd b/main/postgresql-bdr/pgbdr-restore.initd
deleted file mode 100644
index eef552bd5e..0000000000
--- a/main/postgresql-bdr/pgbdr-restore.initd
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/sbin/runscript
-
-extra_commands="${opts} dump restore purge"
-
-depend() {
- need postgresql-bdr
-}
-
-restore() {
- yesno "$PGDUMP" && return 0
- ebegin "Restoring PostgreSQL $PGDUMP"
- psql -U ${PG_USER:-postgres} ${PSQL_OPTS} -f "$PGDUMP" >/dev/null 2>/dev/null
- local res=$?
- yesno "$KEEP_DUMP" || rm -f "$PGDUMP"
- eend $res
- /etc/init.d/postgresql reload
-}
-
-dump() {
- yesno "$PGDUMP" && return 0
- mkdir -p "$( dirname "$PGDUMP" )"
- ebegin "Saving PostgreSQL databases to $PGDUMP"
- pg_dumpall -U ${PG_USER:-postgres} ${PG_DUMPALL_OPTS} -f "$PGDUMP"
- eend $?
-}
-
-purge() {
- yesno "$PGDUMP" && return 0
- ebegin "Removing temporary $PGDUMP PostgreSQL backup"
- rm -f "$PGDUMP"
- eend $?
-}
-
-start() {
- restore
-}