Bug 26947: Correct path for chown and chmod

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-11-25 15:43:52 +01:00
parent d6bf5dc965
commit af90c4018d

View file

@ -80,8 +80,8 @@ dump_instance()
[ "$quiet" = "no" ] && echo "* schema to $schemadump"
mysqldump $dbflag -d --host="$mysqlhost" \
--user="$mysqluser" --password="$mysqlpass" "$mysqldb" > "$schemadump"
chown "root:$name-koha" "$dbdump"
chmod g+r "$dbdump"
chown "root:$name-koha" "$schemadump"
chmod g+r "$schemadump"
else
[ "$quiet" = "no" ] && echo "* DB to $dbdump"
mysqldump $dbflag --host="$mysqlhost" \