Skip to content

Commit 0fecbb6

Browse files
authored
Create wp-su.sh
1 parent dc421df commit 0fecbb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wp-su.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
# This is a wrapper so that wp-cli can run as the www-data user so that permissions
3+
# remain correct
4+
sudo -E -u www-data /bin/wp-cli.phar $*

0 commit comments

Comments
 (0)