2017-05-27 18:09:50 +00:00
|
|
|
#!/bin/bash -x
|
2018-04-30 21:56:25 +00:00
|
|
|
|
2018-04-30 23:33:24 +00:00
|
|
|
# May 2018: lowercase "--adminuser=admin" is still required for some odd
|
2018-04-30 23:35:22 +00:00
|
|
|
# reason, otherwise one cannot login to http://box.lan/moodle (with
|
|
|
|
# Admin/changeme). At the same time --dbuser=Admin still begins with
|
|
|
|
# a capital letter, in keeping with Internet-in-a-Box's other server apps?
|
2018-04-30 23:33:24 +00:00
|
|
|
|
2018-04-30 21:56:25 +00:00
|
|
|
sudo -u {{ apache_user }} \
|
|
|
|
/usr/bin/php {{ moodle_base }}/admin/cli/install.php \
|
|
|
|
--wwwroot=http://{{ iiab_hostname }}.{{ iiab_domain }}/moodle \
|
|
|
|
--dataroot={{ moodle_data }} \
|
|
|
|
--dbtype=pgsql \
|
|
|
|
--dbname={{ moodle_database_name }} \
|
|
|
|
--dbuser=Admin --dbpass=changeme \
|
|
|
|
--fullname=Your_School \
|
|
|
|
--shortname=School \
|
2018-04-30 23:33:24 +00:00
|
|
|
--adminuser=admin --adminpass=changeme \
|
2018-04-30 21:56:25 +00:00
|
|
|
--non-interactive \
|
|
|
|
--agree-license \
|
2018-04-30 22:50:09 +00:00
|
|
|
--allow-unstable # TEMPORARY DURING MAY 2018 TESTING
|
2018-04-30 21:56:25 +00:00
|
|
|
|
2018-04-30 20:55:41 +00:00
|
|
|
chown {{ apache_user }}:{{ apache_user }} {{ moodle_base }}/config.php
|