postmodern 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/pg_wal_archive +6 -1
- data/bin/pg_wal_restore +6 -1
- data/lib/postmodern/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d013705c58d3482656ad333f0076fb2a05ed88fe
|
4
|
+
data.tar.gz: 31856208b6be6e7e39c5366dc04ffea60f06143f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15b9cd5442b710534d42e67d9511a2abf2ddf93b5a26bd5bd4bf3de6612a4397c1759d8c2a8750466abd87e74fde6550dba497223a73cebdc2464205edd6a3a3
|
7
|
+
data.tar.gz: 12e4927b7fac0afe85b06785ca6ba7a9ed01200efdcb1244d7b931e4ab619dd46166e6b629c8318ff531ff8a0af3c5b182673895caac57eb68548e338e76ed47
|
data/bin/pg_wal_archive
CHANGED
@@ -13,6 +13,11 @@ ENV['WAL_ARCHIVE_PATH']=ARGV[1] # maps to %p in postgres archiving
|
|
13
13
|
puts "Archiving file: #{ENV['WAL_ARCHIVE_FILE']}"
|
14
14
|
puts "Archiving path: #{ENV['WAL_ARCHIVE_PATH']}"
|
15
15
|
|
16
|
-
|
16
|
+
def local_script_exists?
|
17
|
+
`which pg_wal_archive.local >/dev/null 2>/dev/null`
|
18
|
+
$?.exitstatus == 0
|
19
|
+
end
|
20
|
+
|
21
|
+
if local_script_exists?
|
17
22
|
`pg_wal_archive.local`
|
18
23
|
end
|
data/bin/pg_wal_restore
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
3
|
+
def local_script_exists?
|
4
|
+
`which pg_wal_restore.local >/dev/null 2>/dev/null`
|
5
|
+
$?.exitstatus == 0
|
6
|
+
end
|
7
|
+
|
8
|
+
if local_script_exists?
|
4
9
|
`pg_wal_restore.local #{ARGV[0]} #{ARGV[1]}`
|
5
10
|
end
|
data/lib/postmodern/version.rb
CHANGED