Skip to content

Instantly share code, notes, and snippets.

@stephan83
Created December 2, 2014 23:48
Show Gist options
  • Save stephan83/10505e4acf3457d66940 to your computer and use it in GitHub Desktop.
Save stephan83/10505e4acf3457d66940 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
if [ "$1" = 'redis-server' ]; then
chown -R redis .
exec gosu redis "$@"
fi
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment