aboutsummaryrefslogtreecommitdiffstats
path: root/util/storageconv.sh
blob: 90abdf0ef7d472adf33c562438ba5e52ad01a697 (plain) (blame)
1
2
3
4
5
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 $*