|
@@ -1461,6 +1461,11 @@ configurarMoodle() {
|
|
if [ ! -d /var/www/moodledata ];then
|
|
if [ ! -d /var/www/moodledata ];then
|
|
mkdir /var/www/moodledata 2>/dev/null
|
|
mkdir /var/www/moodledata 2>/dev/null
|
|
comprobarError $? 602
|
|
comprobarError $? 602
|
|
|
|
+ #Actualizamos permisos
|
|
|
|
+ chmod -R 777 /var/www/moodledata 2>/dev/null
|
|
|
|
+ comprobarError $? 602
|
|
|
|
+ chown -R $webServerUser:$webServerGroup /var/www/moodledata 2>/dev/null
|
|
|
|
+ comprobarError $? 602
|
|
fi
|
|
fi
|
|
# Creamos Base de Datos
|
|
# Creamos Base de Datos
|
|
nombreDBMo=$(echo $dominioMoodle | sed -e 's/\./_/g')
|
|
nombreDBMo=$(echo $dominioMoodle | sed -e 's/\./_/g')
|
|
@@ -1486,7 +1491,7 @@ configurarMoodle() {
|
|
sudo -u $webServerUser php /var/www/$dominioMoodle/admin/cli/install.php --lang=es --wwwroot="$wwwroot" --dbtype="$dbtype" --dbname="$nombreDBMo" --dbuser="$userDBMo" --dbpass="$sqlPasswd" --fullname="$nombreMoodle" --shortname=$nombreCortoMoodle --adminuser=admin --adminpass=$passwdMoodle --adminemail="admin@$dominioMoodle" --agree-license --non-interactive >>$logFile 2>&1
|
|
sudo -u $webServerUser php /var/www/$dominioMoodle/admin/cli/install.php --lang=es --wwwroot="$wwwroot" --dbtype="$dbtype" --dbname="$nombreDBMo" --dbuser="$userDBMo" --dbpass="$sqlPasswd" --fullname="$nombreMoodle" --shortname=$nombreCortoMoodle --adminuser=admin --adminpass=$passwdMoodle --adminemail="admin@$dominioMoodle" --agree-license --non-interactive >>$logFile 2>&1
|
|
comprobarError $? 602
|
|
comprobarError $? 602
|
|
# Actualizamos permisos
|
|
# Actualizamos permisos
|
|
- chown -R $webServerUser:$webServerGroup /var/www/$dominioMoodle /var/www/moodledata
|
|
|
|
|
|
+ chown -R $webServerUser:$webServerGroup /var/www/$dominioMoodle
|
|
# Configuramos VirtualHost
|
|
# Configuramos VirtualHost
|
|
if [ $apacheOn = true ] && [ $sslOn = false ];then
|
|
if [ $apacheOn = true ] && [ $sslOn = false ];then
|
|
virtualHost="./etc/apache2/sites-available/moodle.conf"
|
|
virtualHost="./etc/apache2/sites-available/moodle.conf"
|