@@ -121,9 +121,9 @@ ln -s /stackable/stackable-bcrypt.jar /bin/stackable-bcrypt.jar
121121ln -s /stackable/nifi-${PRODUCT} /stackable/nifi
122122
123123# fix missing permissions / ownership
124- chown -h ${STACKABLE_USER_UID}:0 /stackable/nifi
125- chmod -R g=u /stackable/python
126- chmod -R g=u /stackable/bin
124+ chown --no-dereference ${STACKABLE_USER_UID}:0 /stackable/nifi
125+ chmod --recursive g=u /stackable/python
126+ chmod --recursive g=u /stackable/bin
127127chmod g=u /stackable/nifi-2.2.0
128128EOF
129129
@@ -137,16 +137,12 @@ EOF
137137# Check that permissions and ownership in /stackable are set correctly
138138# This will fail and stop the build if any mismatches are found.
139139RUN <<EOF
140- chmod +x /tmp/check-permissions-ownership
141140/tmp/check-permissions-ownership /stackable ${STACKABLE_USER_UID} 0
142141rm /tmp/check-permissions-ownership
143142EOF
144143
145144# ----------------------------------------
146- # Attention:
147- # If you do any file based actions (copying / creating etc.) below this comment you
148- # absolutely need to make sure that the correct permissions are applied!
149- # chown ${STACKABLE_USER_UID}:0
145+ # Attention: Do not perform any file based actions (copying/creating etc.) below this comment because the permissions would not be checked.
150146# ----------------------------------------
151147
152148USER ${STACKABLE_USER_UID}
0 commit comments