Changeset 1355


Ignore:
Timestamp:
May 2, 2016, 5:34:54 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated changelog

Location:
moodle/trunk/fuentes
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/admin/index.php

    r1348 r1355  
    716716    if ($adminuser->password === 'adminsetuppending') {
    717717        // prevent installation hijacking
    718         if ($adminuser->lastip !== getremoteaddr()) {
    719             print_error('installhijacked', 'admin');
    720         }
     718     //   if ($adminuser->lastip !== getremoteaddr()) {
     719        //    print_error('installhijacked', 'admin');
     720       // }
    721721        // login user and let him set password and admin details
    722722        $adminuser->newadminuser = 1;
  • moodle/trunk/fuentes/debian/changelog

    r1331 r1355  
     1moodle (3.0.3+dfsg-0ubuntu1+lliurex1) xenial; urgency=medium
     2
     3  * Fix postinst to php7.0
     4  * Fix depends (php-zip)
     5  * Applied a patch
     6
     7 -- Juan Ramon Pelegrina <juapesai@hotmail.com>  Mon, 02 May 2016 16:09:34 +0200
     8
    19moodle (3.0.3+dfsg-0ubuntu1) xenial; urgency=medium
    210
  • moodle/trunk/fuentes/debian/control

    r1331 r1355  
    1414Architecture: all
    1515Depends: ${misc:Depends},
    16  libapache2-mod-php | php-cgi | php-fpm, php-mysql | php-pgsql, php-gd, php-curl, php-cli,
     16 libapache2-mod-php | php-cgi | php-fpm, php-mysql | php-pgsql, php-gd, php-curl, php-cli,php-zip,
    1717 apache2 | httpd, ucf, postgresql-client | mysql-client | virtual-mysql-client, dbconfig-common,
    1818 libphp-phpmailer, libphp-adodb, php-htmlpurifier, php-tcpdf, php-cas (>= 1.3.3-1)
  • moodle/trunk/fuentes/debian/patches/series

    r1347 r1355  
     1
    12lliurex
  • moodle/trunk/fuentes/debian/postinst

    r1331 r1355  
    2929
    3030check_php5mysql_notinstalled() {
    31     dpkg -s php5-mysql | grep Status | grep -q installed >/dev/null 2>&1 && return 1
     31    dpkg -s php-mysql | grep Status | grep -q installed >/dev/null 2>&1 && return 1
    3232    return 0
    3333}
    3434
    3535check_php5psql_notinstalled() {
    36     dpkg -s php5-pgsql | grep Status | grep -q installed >/dev/null 2>&1 && return 1
     36    dpkg -s php-pgsql | grep Status | grep -q installed >/dev/null 2>&1 && return 1
    3737    return 0
    3838}
     
    100100    ucf --debconf-ok $tempfile $cfile
    101101    chmod 640 $cfile
    102     chown root:www-data $cfile
     102    chown www-data:www-data $cfile
    103103}
    104104
     
    111111        local php_settings
    112112
    113         php_settings="<IfModule mod_php5.c>
     113        php_settings="<IfModule mod_php7.c>
    114114        php_flag magic_quotes_gpc Off
    115115        php_flag magic_quotes_runtime Off
    116116        php_flag file_uploads On
     117        php_flag short_open_tag On
    117118        php_flag session.auto_start Off
    118119        php_flag session.bug_compat_warn Off
     
    142143${tmp_alias}
    143144
    144 <Directory /usr/share/moodle/>
     145<DirectoryMatch /usr/share/moodle/>
    145146
    146147Options +FollowSymLinks
     
    150151deny from all
    151152
    152 allow from 127.0.0.0/8
     153allow from 127.0.0.0/255.0.0.0
    153154allow from localhost
    154155#comment out the line below to allow remote access
     
    161162</IfModule>
    162163
    163 </Directory>
     164</DirectoryMatch>
    164165EOF
    165166    ucf --debconf-ok $tempfile $cfile
    166167    chmod 640 $cfile
    167     chown root:www-data $cfile
     168    chown www-data:www-data $cfile
    168169
    169170    #Sample config for the virtual host
     
    176177        ServerName ${server}
    177178        DocumentRoot /usr/share/moodle/
     179        AddDefaultCharset utf-8
    178180        <Directory /usr/share/moodle/>
    179181                Options FollowSymLinks MultiViews
     
    196198    ucf --debconf-ok $tempfile $cfile
    197199    chmod 640 $cfile
    198     chown root:www-data $cfile
     200    chown www-data:www-data $cfile
     201
    199202}
    200203
     
    203206dbc_first_version="1.9.8-1"
    204207dbc_go moodle $@
     208#wwwroot="http://localhost/moodle"
    205209
    206210case "$1" in
     
    214218        ln -s $cfile $moodledir/config.php
    215219
     220        repository=/var/lib/moodle
     221        if [ -d $repository ]; then
     222            chown -R www-data:www-data $repository
     223            chmod 0750 $repository
     224        fi
     225
    216226        if [ "$dbc_dbtype" = "mysql" ] && check_php5mysql_notinstalled ; then
    217227                echo 'Error - You have specified that you wish to use a mysql' >&2
Note: See TracChangeset for help on using the changeset viewer.