diff --git a/specs/postgresql-10/postgresql-10.spec b/specs/postgresql-10/postgresql-10.spec index 9462ebdc8..08f1fab93 100644 --- a/specs/postgresql-10/postgresql-10.spec +++ b/specs/postgresql-10/postgresql-10.spec @@ -650,14 +650,6 @@ if [[ $1 -eq 1 ]] ; then /sbin/ldconfig fi -# Migrate from official shitty packages -if [[ -f %{_localstatedir}/run/postmaster-%{majorver}.pid ]] ; then - cat %{_localstatedir}/run/postmaster-%{majorver}.pid > %{_localstatedir}/run/%{name}.pid - touch %{_localstatedir}/lock/subsys/%{name} - rm -f %{_localstatedir}/run/postmaster-%{majorver}.pid - rm -f %{_localstatedir}/lock/subsys/%{realname}-%{majorver} -fi - # Removing bash_profile generated by previous versions of packages if [[ ! -L %{_sharedstatedir}/%{shortname}/.bash_profile ]] ; then rm -f %{_sharedstatedir}/%{shortname}/.bash_profile diff --git a/specs/postgresql-11/postgresql-11.spec b/specs/postgresql-11/postgresql-11.spec index 756d1a19e..1f1702b72 100644 --- a/specs/postgresql-11/postgresql-11.spec +++ b/specs/postgresql-11/postgresql-11.spec @@ -702,14 +702,6 @@ if [[ $1 -eq 1 ]] ; then /sbin/ldconfig fi -# Migrate from official shitty packages -if [[ -f %{_localstatedir}/run/postmaster-%{majorver}.pid ]] ; then - cat %{_localstatedir}/run/postmaster-%{majorver}.pid > %{_localstatedir}/run/%{name}.pid - touch %{_localstatedir}/lock/subsys/%{name} - rm -f %{_localstatedir}/run/postmaster-%{majorver}.pid - rm -f %{_localstatedir}/lock/subsys/%{realname}-%{majorver} -fi - # Removing bash_profile generated by previous versions of packages if [[ ! -L %{_sharedstatedir}/%{shortname}/.bash_profile ]] ; then rm -f %{_sharedstatedir}/%{shortname}/.bash_profile diff --git a/specs/postgresql-12/postgresql-12.spec b/specs/postgresql-12/postgresql-12.spec index 0a7a9bcf7..c7ab6d8a3 100644 --- a/specs/postgresql-12/postgresql-12.spec +++ b/specs/postgresql-12/postgresql-12.spec @@ -705,14 +705,6 @@ if [[ $1 -eq 1 ]] ; then /sbin/ldconfig fi -# Migrate from official shitty packages -if [[ -f %{_localstatedir}/run/postmaster-%{majorver}.pid ]] ; then - cat %{_localstatedir}/run/postmaster-%{majorver}.pid > %{_localstatedir}/run/%{name}.pid - touch %{_localstatedir}/lock/subsys/%{name} - rm -f %{_localstatedir}/run/postmaster-%{majorver}.pid - rm -f %{_localstatedir}/lock/subsys/%{realname}-%{majorver} -fi - # Removing bash_profile generated by previous versions of packages if [[ ! -L %{_sharedstatedir}/%{shortname}/.bash_profile ]] ; then rm -f %{_sharedstatedir}/%{shortname}/.bash_profile diff --git a/specs/postgresql-13/postgresql-13.spec b/specs/postgresql-13/postgresql-13.spec index 50b79a950..75cfb30ab 100644 --- a/specs/postgresql-13/postgresql-13.spec +++ b/specs/postgresql-13/postgresql-13.spec @@ -707,14 +707,6 @@ if [[ $1 -eq 1 ]] ; then /sbin/ldconfig fi -# Migrate from official shitty packages -if [[ -f %{_localstatedir}/run/postmaster-%{majorver}.pid ]] ; then - cat %{_localstatedir}/run/postmaster-%{majorver}.pid > %{_localstatedir}/run/%{name}.pid - touch %{_localstatedir}/lock/subsys/%{name} - rm -f %{_localstatedir}/run/postmaster-%{majorver}.pid - rm -f %{_localstatedir}/lock/subsys/%{realname}-%{majorver} -fi - # Removing bash_profile generated by previous versions of packages if [[ ! -L %{_sharedstatedir}/%{shortname}/.bash_profile ]] ; then rm -f %{_sharedstatedir}/%{shortname}/.bash_profile diff --git a/specs/postgresql-14/postgresql-14.spec b/specs/postgresql-14/postgresql-14.spec index a09298243..aff60281e 100644 --- a/specs/postgresql-14/postgresql-14.spec +++ b/specs/postgresql-14/postgresql-14.spec @@ -709,14 +709,6 @@ if [[ $1 -eq 1 ]] ; then /sbin/ldconfig fi -# Migrate from official shitty packages -if [[ -f %{_localstatedir}/run/postmaster-%{majorver}.pid ]] ; then - cat %{_localstatedir}/run/postmaster-%{majorver}.pid > %{_localstatedir}/run/%{name}.pid - touch %{_localstatedir}/lock/subsys/%{name} - rm -f %{_localstatedir}/run/postmaster-%{majorver}.pid - rm -f %{_localstatedir}/lock/subsys/%{realname}-%{majorver} -fi - # Removing bash_profile generated by previous versions of packages if [[ ! -L %{_sharedstatedir}/%{shortname}/.bash_profile ]] ; then rm -f %{_sharedstatedir}/%{shortname}/.bash_profile diff --git a/specs/postgresql-15/postgresql-15.spec b/specs/postgresql-15/postgresql-15.spec index c8063238b..1469d4c06 100644 --- a/specs/postgresql-15/postgresql-15.spec +++ b/specs/postgresql-15/postgresql-15.spec @@ -718,14 +718,6 @@ if [[ $1 -eq 1 ]] ; then /sbin/ldconfig fi -# Migrate from official shitty packages -if [[ -f %{_localstatedir}/run/postmaster-%{majorver}.pid ]] ; then - cat %{_localstatedir}/run/postmaster-%{majorver}.pid > %{_localstatedir}/run/%{name}.pid - touch %{_localstatedir}/lock/subsys/%{name} - rm -f %{_localstatedir}/run/postmaster-%{majorver}.pid - rm -f %{_localstatedir}/lock/subsys/%{realname}-%{majorver} -fi - # Removing bash_profile generated by previous versions of packages if [[ ! -L %{_sharedstatedir}/%{shortname}/.bash_profile ]] ; then rm -f %{_sharedstatedir}/%{shortname}/.bash_profile