[RTFACT-15748] entrypoint-artifactory.sh docker script does chown -R instead of -RL to follow symlinks Created: 27/Jan/18  Updated: 04/Feb/18

Status: Open
Project: Artifactory Binary Repository
Component/s: Docker Image
Affects Version/s: 5.6.3, 5.8.3
Fix Version/s: None

Type: Bug Priority: High
Reporter: Scott Mosher Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None

Issue Links:
Relationship
is related to RTFACT-15224 Running Artifactory docker container ... Resolved

 Description   

In entrypoint-artifactory.sh from docker.bintray.io/jfrog/artifactory-pro:5.6.3 line no. 170 should be changed from

chown -R ${USER_TO_CHECK}:${GROUP_TO_CHECK} ${DIR_TO_CHECK} || errorExit "Setting ownership on $DIR_TO_CHECK failed"

to

chown -RL ${USER_TO_CHECK}:${GROUP_TO_CHECK} ${DIR_TO_CHECK} || errorExit "Setting ownership on $DIR_TO_CHECK failed"

Reason:

"chown -R" fails to correct file permissions in /opt/jfrog/artifactory/etc/ because this is a symlink to /var/opt/jfrog/artifactory/etc/

"chown -RL" will follow the symlinks and set the permissions correctly.

They are running Artifactory in a Kubernetes cluster. Kubernetes mounts several config files directly into the directory with owner and group set to root. The entrypoint script should correct this, but fails because chown -R is not following the symlinks to the directories.



 Comments   
Comment by Eldad Assis [ 29/Jan/18 ]

With https://www.jfrog.com/jira/browse/RTFACT-15224, we will remove all `chown` calls in the entrypoint script. I think this will also solve this bug.

Generated at Tue Dec 10 03:36:14 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.