1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/moodle/templates/moodle_installer

17 lines
595 B
Bash
Executable file

#!/bin/bash -x
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 \
--adminuser=admin --adminpass=changeme \
--non-interactive \
--agree-license \
--allow-unstable #TEMPORARY DURING MAY 2018 TESTING
chown {{ apache_user }}:{{ apache_user }} {{ moodle_base }}/config.php