diff options
Diffstat (limited to 'util')
-rw-r--r--[-rwxr-xr-x] | util/storageconv | 0 | ||||
-rwxr-xr-x | util/storageconv.sh | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/util/storageconv b/util/storageconv index 52bb77fbb..52bb77fbb 100755..100644 --- a/util/storageconv +++ b/util/storageconv diff --git a/util/storageconv.sh b/util/storageconv.sh new file mode 100755 index 000000000..90abdf0ef --- /dev/null +++ b/util/storageconv.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +WWWUSER=$(ps aux | egrep '([a|A]pache|[h|H]ttpd|lighttpd|[n|N]ginx|h2o)' | awk '{ print $1}' | uniq | grep -v `whoami` | tail -1) + +sudo -u $WWWUSER php util/storageconv $* + |