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 | 0 util/storageconv.sh | 6 ++++++ 2 files changed, 6 insertions(+) mode change 100755 => 100644 util/storageconv create mode 100755 util/storageconv.sh diff --git a/util/storageconv b/util/storageconv old mode 100755 new mode 100644 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