diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-01-25 21:52:29 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-01-25 21:52:29 +0100 |
commit | 4cf05891d7790716f273aaceb59db248d27b80cb (patch) | |
tree | 3008bfb9a776b3ef35ff25ee229d6b8cd263cb7a /util/storageconv.sh | |
parent | d4198223bc1fd06e9b9fe969edb5d03811889def (diff) | |
parent | 1b4bbcc89113b10a43ab7010b9d00d8bedb52e64 (diff) | |
download | volse-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-x | util/storageconv.sh | 6 |
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 $* + |