Changing files permissions

This commit is contained in:
c-bordon
2023-10-03 12:20:17 -03:00
parent 905b4de859
commit c3c8ea3d02
2 changed files with 7 additions and 14 deletions
@@ -144,3 +144,10 @@ find ${TARGET_DIR} -type f -perm 644 -exec chmod 640 {} \;
find ${TARGET_DIR} -type f -perm 664 -exec chmod 660 {} \;
find ${TARGET_DIR} -type f -perm 755 -exec chmod 750 {} \;
find ${TARGET_DIR} -type f -perm 744 -exec chmod 740 {} \;
# Fix OpenSearch security plugin permissions
chown ${USER}:${GROUP} ${TARGET_DIR}${INSTALLATION_DIR}/opensearch-security/internal_users.yml
chown ${USER}:${GROUP} ${TARGET_DIR}${CONFIG_DIR}/opensearch.yml
chmod 0600 ${TARGET_DIR}${CONFIG_DIR}/opensearch.yml
chmod 0600 ${TARGET_DIR}${INSTALLATION_DIR}/opensearch-security/internal_users.yml