Pārlūkot izejas kodu

* configurarMoodle(): cambiamos permisos de moodledata

Guzmán Castanedo Villalba 6 gadi atpakaļ
vecāks
revīzija
1fd8b357ea
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      install

+ 6 - 1
install

@@ -1461,6 +1461,11 @@ configurarMoodle() {
 		if [ ! -d /var/www/moodledata ];then
 			mkdir /var/www/moodledata 2>/dev/null
 			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
 		# Creamos Base de Datos
 		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
 		comprobarError $? 602
 		# Actualizamos permisos
-		chown -R $webServerUser:$webServerGroup /var/www/$dominioMoodle /var/www/moodledata
+		chown -R $webServerUser:$webServerGroup /var/www/$dominioMoodle
 		# Configuramos VirtualHost
 		if [ $apacheOn = true ] && [ $sslOn = false ];then
 			virtualHost="./etc/apache2/sites-available/moodle.conf"