Closed adyyoung closed 3 weeks ago
init.sh
Previously, the script init.sh
was designed to change the file ownership only to 'postgres'. Now, after this modification, the file ownership will change to both 'postgres:postgres'. This change will make the system more secure by ensuring that both the 'postgres' user and group have appropriate access rights. This guards against any unauthorized modifications or invasions that could potentially compromise the database.
When attempting to host this image in K8S with a persistent volume, the permission on the postgres directory were not correct.
I'm overriding the default command to set the permissions correctly using