Bugzilla – Attachment 76018 Details for
Bug 20929
koha-dump should not pass a --password argument to mysqldump
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use env variable instead of --password argument for mysqldump (without spurious white space changes)
patch.diff (text/plain), 667 bytes, created by
Samir Shah
on 2018-06-13 08:34:56 UTC
(
hide
)
Description:
Use env variable instead of --password argument for mysqldump (without spurious white space changes)
Filename:
MIME Type:
Creator:
Samir Shah
Created:
2018-06-13 08:34:56 UTC
Size:
667 bytes
patch
obsolete
>diff --git a/debian/scripts/koha-dump b/debian/scripts/koha-dump >index ff171a0..36e1f96 100755 >--- a/debian/scripts/koha-dump >+++ b/debian/scripts/koha-dump >@@ -69,8 +69,8 @@ dump_instance() > [ -z "$backupdir" ] && backupdir="/var/spool/koha/$name" > dbdump="$backupdir/$name-$date.sql.gz" > [ "$quiet" = "no" ] && echo "* DB to $dbdump" >- mysqldump --databases --host="$mysqlhost" \ >- --user="$mysqluser" --password="$mysqlpass" "$mysqldb" | >+ MYSQL_PWD="$mysqlpass" mysqldump --databases --host="$mysqlhost" \ >+ --user="$mysqluser" "$mysqldb" | > gzip > "$dbdump" > chown "root:$name-koha" "$dbdump" > chmod g+r "$dbdump"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20929
:
76017
|
76018
|
76019
|
79052
|
87356