1 2 3 4 5 6
#!/bin/sh [ "x$(whoami)" != "xwww-data" ] && exec sudo -n -u www-data "$0" "$@" php /srv/openslx/www/slx-admin/api.php "$@"