Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit 54be4f1

Browse files
committed
Fix changing ownership to gpadmin.
1 parent 357936d commit 54be4f1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packaging/rpm/el/SPECS/cloudberry-db.spec

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,18 @@ rmdir %{buildroot}%{cloudberry_prefix}/cloudberry-%{version}/cloudberry
123123
# Create the symbolic link
124124
ln -sfn %{cloudberry_prefix}/cloudberry-%{version} %{buildroot}%{cloudberry_prefix}/cloudberry
125125

126-
# Change ownership to gpadmin.gpadmin if the gpadmin user exists
127-
if id "gpadmin" &>/dev/null; then
128-
chown -R gpadmin:gpadmin %{buildroot}%{cloudberry_prefix}/cloudberry-%{version}
129-
fi
130-
131-
132126
%files
133127
%{cloudberry_prefix}/cloudberry-%{version}
134128
%{cloudberry_prefix}/cloudberry
135129

136130
%license %{cloudberry_prefix}/cloudberry-%{version}/LICENSE
137131

132+
%post
133+
# Change ownership to gpadmin.gpadmin if the gpadmin user exists
134+
if id "gpadmin" &>/dev/null; then
135+
chown -R gpadmin:gpadmin %{cloudberry_prefix}/cloudberry-%{version}
136+
fi
137+
138138
%postun
139139
if [ $1 -eq 0 ] ; then
140140
if [ "$(readlink -f "%{cloudberry_prefix}/cloudberry")" == "%{cloudberry_prefix}/cloudberry-%{version}" ]; then
@@ -143,5 +143,5 @@ if [ $1 -eq 0 ] ; then
143143
fi
144144

145145
%changelog
146-
* Thu Aug 20 2024 Ed Espino [email protected] - 1.5.4-1
146+
* Wed Aug 28 2024 Ed Espino [email protected] - 1.6.0-rc1
147147
- Initial package with binary files under Apache 2.0 License

0 commit comments

Comments
 (0)