aboutsummaryrefslogtreecommitdiffstats
path: root/util/storageconv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/storageconv.sh')
-rwxr-xr-xutil/storageconv.sh6
1 files changed, 6 insertions, 0 deletions
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 $*
+