sync_from_old_server.sh: some minor changes.

This commit is contained in:
Christoph 2021-10-02 02:36:41 +02:00
parent 31bb7eed62
commit 80d7f349bd

View File

@ -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