summaryrefslogtreecommitdiffstats
path: root/upgrade.in
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2015-02-10 13:24:16 +0100
committerPavel Raiskup <praiskup@redhat.com>2015-02-10 13:46:33 +0100
commitbea99d7e37e57d209a146505313280c38c8548f1 (patch)
treedd83745f83b300e4a7158e6f7ab8d3b2351fdcf3 /upgrade.in
parenta494c5b62cd9a22a6a2b3a6cdc49e36af4e8d9bc (diff)
downloadpostgresql-setup-bea99d7e37e57d209a146505313280c38c8548f1.tar.gz
postgresql-setup-bea99d7e37e57d209a146505313280c38c8548f1.tar.xz
postgresql-setup-bea99d7e37e57d209a146505313280c38c8548f1.zip
legacy-scripts: generate them from single template
As we do not consider the postgresql@ unit variants (that would require libexec/initscripts/legacy-actions/postgresql@CONCRETE symlink to the default legacy-scripts directory), there is no need to do run-time checks. * Makefile.am (upgrade): Create from legacy-sysv-script.in template. (initdb): Likewise. (systemdlegacyscripts_DATA): Substitute with .. (systemdlegacyscripts_SCRIPTS): .. this to have execute bit after installation. (GENERATED_FILES): Add _SCRIPTS variant for systemdlegacyscripts. * legacy-sysv-script.in: New unified template for legacy scripts. * initdb.in: Remove. * upgrade.in: Likewise. * NEWS: Document.
Diffstat (limited to 'upgrade.in')
-rw-r--r--upgrade.in16
1 files changed, 0 insertions, 16 deletions
diff --git a/upgrade.in b/upgrade.in
deleted file mode 100644
index c542494..0000000
--- a/upgrade.in
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-#
-# Legacy action script for "service postgresql upgrade"
-
-# Find the name of the service
-SERVICE_NAME=$(basename $(dirname "$0"))
-if [ x"$SERVICE_NAME" = x. ]
-then
- SERVICE_NAME=postgresql
-fi
-
-echo Hint: the preferred way to do this is now '"postgresql-setup upgrade"' >&2
-
-/usr/bin/postgresql-setup upgrade "$SERVICE_NAME"
-
-exit $?