google / earthenterprise

Google Earth Enterprise - Open Source
Apache License 2.0
2.67k stars 890 forks source link

OpenGEE server RPM creates incorrect home directories #1961

Closed tst-jlarocco closed 3 years ago

tst-jlarocco commented 3 years ago

The opengee-server RPM's post-install.sh is using an undefined variable to create the geapacheuser and gepguser home directories, causing /.users/geapacheuser and /.users/gepguser/ to be created instead.

https://github.com/google/earthenterprise/blob/master/earth_enterprise/rpms/opengee-server/snippets/post-install.sh#L172

Surprisingly, the correct directories (/opt/google/.user/geapacheuser/ and /opt/google/.user/gepguser/) are also created during the install, so the creation here may not be necessary.