Give the proper file/directory permissions to the pgAdmin installation directory on RHEL-8. This is the only platform that has write permission for the executable files after installation which is fixed.

This commit is contained in:
Khushboo Vashi
2024-06-24 17:09:28 +05:30
parent 3d107ea618
commit 4a645343a9
3 changed files with 8 additions and 3 deletions

View File

@@ -212,7 +212,8 @@ _build_docs() {
_copy_code() {
echo "Copying the server code..."
if [ "$2" == 'redhat' ] && [ "${OS_VERSION}" == "8" ]; then
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F "=" '{ print $2 }' | sed 's/"//g' | awk -F "." '{ print $1 }')
if [ "$1" == 'redhat' ] && [ "${OS_VERSION}" == "8" ]; then
echo "Setting file permission through umask..."
umask u+rwx,go+rx,go-w
fi