summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-21 18:33:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-21 18:33:52 -0300
commit3b9850239b4ed795cdb9683a3e3beb05db8b7d5f (patch)
treeeaa551eb7606295730e6730285c7d2eeeace9045
parent22db890684f6bec66a805310a3494e6a3f6a7403 (diff)
downloadhydra-3b9850239b4ed795cdb9683a3e3beb05db8b7d5f.tar.gz
hydra-3b9850239b4ed795cdb9683a3e3beb05db8b7d5f.tar.bz2
Fix hydra_database_name (2)
-rw-r--r--lib/hydra/backup2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup
index fa21ab8..de5f3ac 100644
--- a/lib/hydra/backup
+++ b/lib/hydra/backup
@@ -172,5 +172,5 @@ function hydra_backup_restore_database {
# Return a normalized database name
function hydra_database_name {
# MySQL 16 chars limit
- echo $1 | sed -e 's/^\(................\)/\1/'
+ echo $1 | sed -e 's/^\(................\).*/\1/'
}