]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix hydra_database_name
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 21 Mar 2014 21:30:16 +0000 (18:30 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 21 Mar 2014 21:30:16 +0000 (18:30 -0300)
lib/hydra/backup

index c056c0138a5ed234b83d250ef6cb892db4b69041..fa21ab801c157ce8fa9e819e9e4f84d1003d6466 100644 (file)
@@ -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 -r 's/(^>.{16}).*/\1/'
+  echo $1 | sed -e 's/^\(................\)/\1/'
 }