Skip to content

Commit

Permalink
PostgreSQL specs refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Sep 22, 2023
1 parent 473647b commit 59e09c7
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 48 deletions.
8 changes: 0 additions & 8 deletions specs/postgresql-10/postgresql-10.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions specs/postgresql-11/postgresql-11.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions specs/postgresql-12/postgresql-12.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions specs/postgresql-13/postgresql-13.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions specs/postgresql-14/postgresql-14.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions specs/postgresql-15/postgresql-15.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59e09c7

Please sign in to comment.