From 3ed444b4b4cb1817ab1c780138d4bef0b8909876 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Mon, 25 Jan 2021 18:35:28 +0200 Subject: Run storageconv from web server user --- util/storageconv.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 util/storageconv.sh (limited to 'util/storageconv.sh') 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 $* + -- cgit v1.2.3