yjhjstz commented on issue #1075:
URL: https://github.com/apache/cloudberry/issues/1075#issuecomment-2967902064

   ```shell
   %post
   # Change ownership to gpadmin.gpadmin if the gpadmin user exists
   if id "gpadmin" &>/dev/null; then
       chown -R gpadmin:gpadmin %{cloudberry_install_dir}-%{version}
       chown gpadmin:gpadmin %{cloudberry_install_dir}
   fi
   
   %postun
   if [ $1 -eq 0 ] ; then
     if [ "$(readlink -f "%{cloudberry_install_dir}")" == 
"%{cloudberry_install_dir}-%{version}" ]; then
       unlink "%{cloudberry_install_dir}" || true
     fi
   fi
   ```
   
   it's related code, maybe lost `%{prefix}` .


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to