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

(-)a/debian/scripts/koha-restore (-1 / +1 lines)
Lines 73-79 mysqluser="koha_$name" Link Here
73
mysqlpwd="$( xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml )"
73
mysqlpwd="$( xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml )"
74
zcat "$sqldump" | mysql --defaults-extra-file=/etc/mysql/koha-common.cnf
74
zcat "$sqldump" | mysql --defaults-extra-file=/etc/mysql/koha-common.cnf
75
mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <<eof || true
75
mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <<eof || true
76
DROP USER '$mysqluser';
76
DROP USER IF EXISTS '$mysqluser';
77
eof
77
eof
78
mysql --defaults-extra-file=/etc/mysql/koha-common.cnf << eof || true
78
mysql --defaults-extra-file=/etc/mysql/koha-common.cnf << eof || true
79
CREATE USER '$mysqluser' IDENTIFIED BY '$mysqlpwd';
79
CREATE USER '$mysqluser' IDENTIFIED BY '$mysqlpwd';

Return to bug 29009