diff options
author | Jeff Bilyk <jbilyk@alpinelinux.org> | 2015-05-04 17:24:30 +0000 |
---|---|---|
committer | Jeff Bilyk <jbilyk@alpinelinux.org> | 2015-05-04 17:24:30 +0000 |
commit | 9a77d3fa7ad4acce0dc2b607df9a2218142cbb26 (patch) | |
tree | d6b3ce913f7769c6f073777f4a75605e8c446e28 /testing/postgresql-bdr/pgbdr-restore.initd | |
parent | f5297b280805aa0b0036d7bf8f4bcea12075c80a (diff) | |
download | aports-9a77d3fa7ad4acce0dc2b607df9a2218142cbb26.tar.bz2 aports-9a77d3fa7ad4acce0dc2b607df9a2218142cbb26.tar.xz |
main/postgresql-{bdr,bdr-extension}: moved from testing
Diffstat (limited to 'testing/postgresql-bdr/pgbdr-restore.initd')
-rw-r--r-- | testing/postgresql-bdr/pgbdr-restore.initd | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/testing/postgresql-bdr/pgbdr-restore.initd b/testing/postgresql-bdr/pgbdr-restore.initd deleted file mode 100644 index eef552bd5e..0000000000 --- a/testing/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 -} |