aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorCharlie Root <root@zotum.net>2021-01-25 18:35:28 +0200
committerCharlie Root <root@zotum.net>2021-01-25 18:35:28 +0200
commit3ed444b4b4cb1817ab1c780138d4bef0b8909876 (patch)
treed2ca741f81f7d7311ff1f8fa9f1ed330a6cdf6cb /util
parent77793e17c04b1f67c10a83e7877c36a8b11ddbaa (diff)
downloadvolse-hubzilla-3ed444b4b4cb1817ab1c780138d4bef0b8909876.tar.gz
volse-hubzilla-3ed444b4b4cb1817ab1c780138d4bef0b8909876.tar.bz2
volse-hubzilla-3ed444b4b4cb1817ab1c780138d4bef0b8909876.zip
Run storageconv from web server user
Diffstat (limited to 'util')
-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 $*
+