-
Notifications
You must be signed in to change notification settings - Fork 992
Disable permissions change #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hello, Can you please adapt it to the existing formatting :
Will merge that in the 1.2.3 coming release. |
@eduardosan Could you please fix the formatting, so we could all benefit from your fix :) |
Hello, The fix is provided in above commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eduardosan still some fix needed, no?
@@ -125,7 +127,8 @@ EOF | |||
mv /tmp/schema/cn=config/cn=schema/* /etc/ldap/slapd.d/cn=config/cn=schema | |||
rm -r /tmp/schema | |||
|
|||
chown -R openldap:openldap /etc/ldap/slapd.d/cn=config/cn=schema | |||
if [ -z "$DISABLE_CHOWN" ]; then | |||
chown -R openldap:openldap /etc/ldap/slapd.d/cn=config/cn=schema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing fi
?
chown -R openldap:openldap ${CONTAINER_SERVICE_DIR}/slapd | ||
if [ -z "$DISABLE_CHOWN" ]; then | ||
chmod 600 ${LDAP_TLS_DH_PARAM_PATH} | ||
chown -R openldap:openldap ${CONTAINER_SERVICE_DIR}/slapd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing fi
?
chown openldap:openldap $PREVIOUS_LDAP_TLS_CRT_PATH $PREVIOUS_LDAP_TLS_KEY_PATH $PREVIOUS_LDAP_TLS_CA_CRT_PATH $PREVIOUS_LDAP_TLS_DH_PARAM_PATH | ||
if [ -z "$DISABLE_CHOWN" ]; then | ||
chmod 600 ${PREVIOUS_LDAP_TLS_DH_PARAM_PATH} | ||
chown openldap:openldap $PREVIOUS_LDAP_TLS_CRT_PATH $PREVIOUS_LDAP_TLS_KEY_PATH $PREVIOUS_LDAP_TLS_CA_CRT_PATH $PREVIOUS_LDAP_TLS_DH_PARAM_PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent + fi
Now I thing they are all included |
@eduardosan Thanks 👍 @BertrandGouny Do you think it can be merged? Thanks. |
Thanks all, |
Hi,
I have a very specific use case where data volumes are mounted from a sshfs partition and other network partitions, and in this case one can't change permissions on remote disks.
I just added an environment var to disable this when it's necessary.