Skip to content

Instantly share code, notes, and snippets.

@taosx
Created May 17, 2017 23:39
Show Gist options
  • Save taosx/de47507d33e11baa5c6af12cc1790a4f to your computer and use it in GitHub Desktop.
Save taosx/de47507d33e11baa5c6af12cc1790a4f to your computer and use it in GitHub Desktop.
This is a wrapper so that wp-cli can run as the www-data user so that permissions
#!/bin/sh
# This is a wrapper so that wp-cli can run as the www-data user so that permissions
# remain correct
sudo -E -u ${USER} /usr/local/bin/wp-cli.phar $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment