Skip to content

Instantly share code, notes, and snippets.

@iadknet
Created July 24, 2015 23:27
Show Gist options
  • Save iadknet/650e6153d624a474b48c to your computer and use it in GitHub Desktop.
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.
#!/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