Skip to content

Instantly share code, notes, and snippets.

@jakejarvis
Created September 16, 2019 03:22
Show Gist options
  • Select an option

  • Save jakejarvis/cecd1518c7c8b270b631caacc3a0a2dc to your computer and use it in GitHub Desktop.

Select an option

Save jakejarvis/cecd1518c7c8b270b631caacc3a0a2dc to your computer and use it in GitHub Desktop.
wp-su.sh
#!/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 www-data /bin/wp-cli.phar $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment