diff --git a/sync_from_old_server.sh b/sync_from_old_server.sh index 827d5d5..aa83ec3 100755 --- a/sync_from_old_server.sh +++ b/sync_from_old_server.sh @@ -34,8 +34,13 @@ sync_home_dirs=" # - the basename of the destination directory must be the same as # - the basename of the source directory. # - +# - Example +# - sync_web_dirs=" +# - /var/www:/data/www +# - /home/chris +# - " +# - sync_web_dirs=" - /var/www:/data/www " @@ -172,6 +177,9 @@ echo_done() { echo_ok() { echo -e "\033[80G[ \033[32mok\033[m ]" } +echo_ok() { + echo -e "\033[80G[ \033[32mok\033[m ]" +} echo_warning() { echo -e "\033[80G[ \033[33m\033[1mwarn\033[m ]" } @@ -375,6 +383,10 @@ if $_got_mysql_databases ; then echo_skipped continue fi + if [[ "${_src_db}" = "sys" ]]; then + echo_skipped + continue + fi if [[ "${_src_db}" = "test" ]] || [[ "${_src_db}" = "mysqltest" ]] ; then echo_skipped continue @@ -748,11 +760,3 @@ fi rm $tmp_err_msg echo "" exit 0 - -if [[ "$?" -ne 0 ]] ; then - installation_failed=true - error "$(cat $tmp_err_msg)" -fi -if ! $installation_failed ; then - echo_ok -fi