setup_moodle variables
parent
63b9ed6ac2
commit
fd37748426
8
dd-ctl
8
dd-ctl
|
@ -443,6 +443,12 @@ nextcloud_scan(){
|
|||
setup_moodle(){
|
||||
echo " --> Applying custom settings in moodle"
|
||||
# TODO: check why admin/cli/cfg can't be read with -u nobody
|
||||
DD_LETSENCRYPT_EMAIL="$(grep -E '^LETSENCRYPT_EMAIL=' dd.conf | cut -d = -f 2-)"
|
||||
DD_TITLE="$(grep -E '^TITLE=' dd.conf | cut -d = -f 2-)"
|
||||
NEXTCLOUD_ADMIN_USER="$(grep -E '^NEXTCLOUD_ADMIN_USER=' dd.conf | cut -d = -f 2-)"
|
||||
NEXTCLOUD_ADMIN_PASSWORD="$(grep -E '^NEXTCLOUD_ADMIN_PASSWORD=' dd.conf | cut -d = -f 2-)"
|
||||
DOMAIN="$(grep -E '^DOMAIN=' dd.conf | cut -d = -f 2-)"
|
||||
|
||||
docker exec -i dd-apps-moodle sh -s <<-EOF
|
||||
php7 admin/cli/maintenance.php --enable
|
||||
php7 admin/cli/cfg.php --name=guestloginbutton --set=0
|
||||
|
@ -452,7 +458,7 @@ setup_moodle(){
|
|||
php7 admin/cli/cfg.php --name=timezone --set="${MOODLE_TIMEZONE-Europe/Madrid}"
|
||||
php7 admin/cli/upgrade.php --non-interactive
|
||||
php7 theme/cbe/postinstall.php \
|
||||
--wwwroot="moodle.${DD_DOMAIN}" \
|
||||
--wwwroot="moodle.${DOMAIN}" \
|
||||
--ncadmin="${NEXTCLOUD_ADMIN_USER}" \
|
||||
--ncpass="${NEXTCLOUD_ADMIN_PASSWORD}" \
|
||||
--sitename="${DD_TITLE}" \
|
||||
|
|
Loading…
Reference in New Issue