1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/moodle/templates/moodle_installer
2017-05-27 11:09:50 -07:00

8 lines
419 B
Bash
Executable file

#!/bin/bash -x
sudo -u {{ apache_data }} /usr/bin/php {{moodle_base}}/admin/cli/install.php \
--wwwroot=http://schoolserver.lan/moodle --dataroot={{moodle_data}} \
--dbtype=pgsql --dbname=moodle --dbuser=Admin --dbpass=changeme \
--fullname=Your_School --shortname=School \
--adminuser=admin --adminpass=changeme \
--non-interactive --agree-license
chown {{ apache_data}}:{{ apache_data }} {{ moodle_base }}/config.php