diff options
author | Charlie Root <root@zotum.net> | 2021-01-25 18:35:28 +0200 |
---|---|---|
committer | Charlie Root <root@zotum.net> | 2021-01-25 18:35:28 +0200 |
commit | 3ed444b4b4cb1817ab1c780138d4bef0b8909876 (patch) | |
tree | d2ca741f81f7d7311ff1f8fa9f1ed330a6cdf6cb /util | |
parent | 77793e17c04b1f67c10a83e7877c36a8b11ddbaa (diff) | |
download | volse-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/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 $* + |