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

(-)a/debian/scripts/koha-create (-2 / +7 lines)
Lines 691-697 then Link Here
691
    # Set up MySQL database for this instance.
691
    # Set up MySQL database for this instance.
692
    if [ "$op" = create ]
692
    if [ "$op" = create ]
693
    then
693
    then
694
        mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <<eof
694
        if [ ! -e /etc/mysql/debian.cnf ]; then
695
            MYSQL_OPTIONS="-u root"
696
            echo "WARNING: The koha-common.cnf file is a dead soft link!"
697
        else
698
            MYSQL_OPTIONS="--defaults-extra-file=/etc/mysql/koha-common.cnf"
699
        fi
700
        mysql $MYSQL_OPTIONS <<eof
695
CREATE DATABASE \`$mysqldb\`;
701
CREATE DATABASE \`$mysqldb\`;
696
CREATE USER \`$mysqluser\`@'$mysql_hostname' IDENTIFIED BY '$mysqlpwd';
702
CREATE USER \`$mysqluser\`@'$mysql_hostname' IDENTIFIED BY '$mysqlpwd';
697
CREATE USER \`$mysqluser\`@'%' IDENTIFIED BY '$mysqlpwd';
703
CREATE USER \`$mysqluser\`@'%' IDENTIFIED BY '$mysqlpwd';
698
- 

Return to bug 19547