summaryrefslogtreecommitdiff
path: root/testing/postgresql/postgresql.install
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-07-01 04:58:03 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-07-01 04:58:03 +0000
commit76400556d9e8a5dedc692487c13b76a541813a23 (patch)
treefb8b06b7dea0e79577a77e3748ed551d9ac1b34b /testing/postgresql/postgresql.install
parent64e72407414ce0badfb541782125cd8e3a25c12e (diff)
Fri Jul 1 04:58:02 UTC 2011
Diffstat (limited to 'testing/postgresql/postgresql.install')
-rw-r--r--testing/postgresql/postgresql.install22
1 files changed, 0 insertions, 22 deletions
diff --git a/testing/postgresql/postgresql.install b/testing/postgresql/postgresql.install
deleted file mode 100644
index d65bb6a7f..000000000
--- a/testing/postgresql/postgresql.install
+++ /dev/null
@@ -1,22 +0,0 @@
-post_install() {
- if [ ! -d '/var/lib/postgres' ]; then
- mkdir -p '/var/lib/postgres'
- fi
- getent group postgres >/dev/null || groupadd -g 88 postgres
- getent passwd postgres >/dev/null || useradd -c 'PostgreSQL user' -u 88 -g postgres -d '/var/lib/postgres' -s /bin/bash postgres
- passwd -l postgres >/dev/null
-}
-
-post_upgrade() {
- post_install $1
- # FS#23858, fix postgres user shell issue
- postgres_shell=$(getent passwd postgres | cut -d: -f7)
- if [ "$postgres_shell" = "/sbin/nologin" ]; then
- chsh -s /bin/bash postgres
- fi
-}
-
-post_remove() {
- getent passwd postgres >/dev/null && userdel postgres
- getent group postgres >/dev/null && groupdel postgres
-}