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

(-)a/debian/scripts/koha-create (-2 / +7 lines)
Lines 706-712 then Link Here
706
    # Set up MySQL database for this instance.
706
    # Set up MySQL database for this instance.
707
    if [ "$op" = create ]
707
    if [ "$op" = create ]
708
    then
708
    then
709
        mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <<eof
709
        if [ ! -e /etc/mysql/debian.cnf ]; then
710
            MYSQL_OPTIONS="-u root"
711
            echo "WARNING: The koha-common.cnf file is a dead soft link!"
712
        else
713
            MYSQL_OPTIONS="--defaults-extra-file=/etc/mysql/koha-common.cnf"
714
        fi
715
        mysql $MYSQL_OPTIONS <<eof
710
CREATE DATABASE \`$mysqldb\`;
716
CREATE DATABASE \`$mysqldb\`;
711
CREATE USER \`$mysqluser\`@'$mysql_hostname' IDENTIFIED BY '$mysqlpwd';
717
CREATE USER \`$mysqluser\`@'$mysql_hostname' IDENTIFIED BY '$mysqlpwd';
712
CREATE USER \`$mysqluser\`@'%' IDENTIFIED BY '$mysqlpwd';
718
CREATE USER \`$mysqluser\`@'%' IDENTIFIED BY '$mysqlpwd';
713
- 

Return to bug 19547