~alpine/devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[alpine-devel] [PATCH] main/postgresql/pg-restore.initd

Nathan Angelacos <nangel@alpinelinux.org>
Details
Message ID
<1313414177-4854-1-git-send-email-nangel@alpinelinux.org>
Sender timestamp
1313414177
DKIM signature
missing
Download raw message
Patch: +8 -1
From: Nathan Angelacos <nangel@tetrasec.net>

	add a "purge" command - delete the temporary database backup
---
 main/postgresql/pg-restore.initd |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/main/postgresql/pg-restore.initd b/main/postgresql/pg-restore.initd
index 91c69d1..13462fe 100644
--- a/main/postgresql/pg-restore.initd
+++ b/main/postgresql/pg-restore.initd
@@ -2,7 +2,7 @@

. /etc/conf.d/postgresql

opts="${opts} dump restore"
opts="${opts} dump restore purge"

depend() {
	need postgresql
@@ -27,6 +27,13 @@ dump() {
	eend $?
}

purge() {
	yesno "$PGDUMP" && return 0
	ebegin "Removing temporary $PGDUMP PostgreSQL backup"
	rm -f "$PGDUMP" 
	eend $?
}

start() {
	restore	
}
-- 
1.7.6



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

[alpine-devel] Re: [PATCH] main/postgresql/pg-restore.initd

Nathan Angelacos <nangel@alpinelinux.org>
Details
Message ID
<4E48AFC1.8010501@alpinelinux.org>
In-Reply-To
<1313414177-4854-1-git-send-email-nangel@alpinelinux.org> (view parent)
Sender timestamp
1313386433
DKIM signature
missing
Download raw message
On 08/15/2011 06:16 AM, Nathan Angelacos wrote:
 > From: Nathan Angelacos<nangel@tetrasec.net>
 >
 > 	add a "purge" command - delete the temporary database backup

The idea here is to delete the temporary database dump after an lbu 
commit has completed:


-- /etc/lbu/pre-package.d/postgresdump  --
#!/bin/sh
/etc/init.d/pg-restore dump


-- /etc/lbu/post-package.d/postgresdump  --
#!/bin/sh
/etc/init.d/pg-restore purge


Otherwise the temporary file is never removed.


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)