From bea99d7e37e57d209a146505313280c38c8548f1 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 10 Feb 2015 13:24:16 +0100 Subject: 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. --- upgrade.in | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 upgrade.in (limited to 'upgrade.in') 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 $? -- cgit