summaryrefslogtreecommitdiffstats
path: root/pgdg/update
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xpgdg/update12
1 files changed, 12 insertions, 0 deletions
diff --git a/pgdg/update b/pgdg/update
new file mode 100755
index 0000000..4a937df
--- /dev/null
+++ b/pgdg/update
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+. $HOME/apt.postgresql.org/pgapt.conf
+
+set -eux
+
+sed -i \
+ -e "s/^PG_BETA_VERSION=.*/PG_BETA_VERSION=\"${PG_BETA_VERSION:-}\"/" \
+ -e "s/^PG_DEVEL_VERSION=.*/PG_DEVEL_VERSION=\"$PG_DEVEL_VERSION\"/" \
+ -e "s/^PG_REPOSITORY_DISTS=.*/PG_REPOSITORY_DISTS=\"$PG_REPOSITORY_DISTS\"/" \
+ -e "s/^PG_ARCHIVE_DISTS=.*/PG_ARCHIVE_DISTS=\"$PG_ARCHIVE_DISTS\"/" \
+ apt.postgresql.org.sh