Blame SOURCES/postgresql-scl-legacy.patch

7686b4
diff -up ./initdb.sh.scl-legacy ./initdb.sh
7686b4
--- ./initdb.sh.scl-legacy	2014-02-17 13:53:35.000000000 +0100
7686b4
+++ ./initdb.sh	2014-02-17 15:09:00.209963614 +0100
7686b4
@@ -9,8 +9,8 @@ then
7686b4
     SERVICE_NAME=postgresql
7686b4
 fi
7686b4
 
7686b4
-echo Hint: the preferred way to do this is now '"postgresql-setup initdb"' >&2
7686b4
+echo "Hint: the preferred way to do this is now \"scl enable __SCL_NAME__ 'postgresql-setup initdb'\"" >&2
7686b4
 
7686b4
-/usr/bin/postgresql-setup initdb "$SERVICE_NAME"
7686b4
+scl enable __SCL_NAME__ -- postgresql-setup initdb "$SERVICE_NAME"
7686b4
 
7686b4
 exit $?
7686b4
diff -up ./upgrade.sh.scl-legacy ./upgrade.sh
7686b4
--- ./upgrade.sh.scl-legacy	2014-02-17 13:53:35.000000000 +0100
7686b4
+++ ./upgrade.sh	2014-02-17 15:07:38.739440049 +0100
7686b4
@@ -9,8 +9,8 @@ then
7686b4
     SERVICE_NAME=postgresql
7686b4
 fi
7686b4
 
7686b4
-echo Hint: the preferred way to do this is now '"postgresql-setup upgrade"' >&2
7686b4
+echo "Hint: the preferred way to do this is now \"scl enable __SCL_NAME__ 'postgresql-setup upgrade'\"" >&2
7686b4
 
7686b4
-/usr/bin/postgresql-setup upgrade "$SERVICE_NAME"
7686b4
+scl enable __SCL_NAME__ -- postgresql-setup upgrade "$SERVICE_NAME"
7686b4
 
7686b4
 exit $?