aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-25 20:28:03 +0000
committerMario <mario@mariovavti.com>2021-01-25 20:28:03 +0000
commit1b4bbcc89113b10a43ab7010b9d00d8bedb52e64 (patch)
treeb600aa2ef47536cb4af613c45189bddbef072f98
parent0e9d99c603d84b76c4774aa39dc782992bd91cdc (diff)
parent3ed444b4b4cb1817ab1c780138d4bef0b8909876 (diff)
downloadvolse-hubzilla-1b4bbcc89113b10a43ab7010b9d00d8bedb52e64.tar.gz
volse-hubzilla-1b4bbcc89113b10a43ab7010b9d00d8bedb52e64.tar.bz2
volse-hubzilla-1b4bbcc89113b10a43ab7010b9d00d8bedb52e64.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
-rw-r--r--[-rwxr-xr-x]util/storageconv0
-rwxr-xr-xutil/storageconv.sh6
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 $*
+