View | Details | Raw Unified | Return to bug 34088
Collapse All | Expand All

(-)a/debian/scripts/koha-upgrade-schema (-1 / +1 lines)
Lines 43-49 do Link Here
43
        echo "Upgrading database schema for $name"
43
        echo "Upgrading database schema for $name"
44
        KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \
44
        KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \
45
        PERL5LIB=$PERL5LIB \
45
        PERL5LIB=$PERL5LIB \
46
        "$CGI_PATH/installer/data/mysql/updatedatabase.pl"
46
        "$CGI_PATH/installer/data/mysql/needs_update.pl" && "$CGI_PATH/installer/data/mysql/updatedatabase.pl"
47
    else
47
    else
48
        die "Error: Invalid instance name $name"
48
        die "Error: Invalid instance name $name"
49
    fi
49
    fi
(-)a/installer/data/mysql/needs_update.pl (+6 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
3
use Modern::Perl;
4
5
use Koha::Installer;
6
exit !Koha::Installer->needs_update;
(-)a/installer/data/mysql/updatedatabase.pl (-8 lines)
Lines 29-41 Link Here
29
29
30
use Modern::Perl;
30
use Modern::Perl;
31
31
32
BEGIN {
33
    use Koha::Installer;
34
    if ( !Koha::Installer->needs_update ) {
35
       exit;
36
    }
37
}
38
39
use feature 'say';
32
use feature 'say';
40
33
41
# CPAN modules
34
# CPAN modules
42
- 

Return to bug 34088