Files
core/util/storageconv.sh
Hilmar R c26dede97f get dev
2021-03-01 18:48:11 +01:00

7 lines
184 B
Bash
Executable File

#!/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 $*