diff --git a/README.md b/README.md index 0582870..433ed22 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ RosarioSIS uses a Postgres database: ``` bash $ docker run --name rosariodb -d postgres:9.4 --restart=always -$ docker run -h `hostname -f` -d -p 80:80 --name rosariosis --link rosariodb:rosariodb rosariosis --restart=always +$ docker run -e "ROSARIOSIS_ADMIN_EMAIL=admin@example.com" -h `hostname -f` -d -p 80:80 --name rosariosis --link rosariodb:rosariodb rosariosis --restart=always ``` Port 80 will be exposed, so you can visit `localhost` to get started. The default username is `admin` and the default password is `admin`. diff --git a/conf/config.inc.php b/conf/config.inc.php index 09fe42e..7d344d6 100644 --- a/conf/config.inc.php +++ b/conf/config.inc.php @@ -16,7 +16,7 @@ if(!defined('CONFIG_INC')) $wkhtmltopdfPath = '/usr/bin/wkhtmltopdf'; // empty string means wkhtmltopdf will not be called and reports will be rendered in html instead of pdf $DefaultSyear = '2014'; // Default school year, should match the database to be able to login - $RosarioNotifyAddress = ''; // email address to send error and new administrator notifications + $RosarioNotifyAddress = getenv('ROSARIOSIS_ADMIN_EMAIL'); // email address to send error and new administrator notifications $RosarioLocales = array('en_US.utf8'); // Add other languages you want to support here, ex: array('en_US.utf8', 'fr_FR.utf8', 'es_ES.utf8'); }