Created
July 24, 2015 23:27
-
-
Save iadknet/650e6153d624a474b48c to your computer and use it in GitHub Desktop.
Sample docker entrypoint script to set file permission of mounted directory and execute command as user.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
chown -R $SOLR_USER:$SOLR_USER /data | |
su -c "$@" -m $SOLR_USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment