#!/bin/bash -e
# Run phplist from the command line.
# Access is restricted to users listed in the config file, default: admin
# For reference see: /var/www/phplist/docs/README.commandline

set ${USER:=admin}
export USER
export CONFIG=/var/www/phplist/config/config.php
php5 /var/www/phplist/admin/index.php $*
