aboutsummaryrefslogtreecommitdiffstats
path: root/util/storageconv.sh
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-01-25 21:52:29 +0100
committerMario Vavti <mario@mariovavti.com>2021-01-25 21:52:29 +0100
commit4cf05891d7790716f273aaceb59db248d27b80cb (patch)
tree3008bfb9a776b3ef35ff25ee229d6b8cd263cb7a /util/storageconv.sh
parentd4198223bc1fd06e9b9fe969edb5d03811889def (diff)
parent1b4bbcc89113b10a43ab7010b9d00d8bedb52e64 (diff)
downloadvolse-hubzilla-4cf05891d7790716f273aaceb59db248d27b80cb.tar.gz
volse-hubzilla-4cf05891d7790716f273aaceb59db248d27b80cb.tar.bz2
volse-hubzilla-4cf05891d7790716f273aaceb59db248d27b80cb.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
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 $*
+