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