mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user