Created
February 7, 2019 08:08
-
-
Save sumitpore/18bc04219c90d1460a4b146e5be02003 to your computer and use it in GitHub Desktop.
How to run multiple commands as a www-data user in terminal
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
sudo -- sh -c "su www-data -s /bin/sh -c 'cd /var/www/html/test-site && wordmove pull -tpmudv -e staging'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment