From 1fb83b89e52b57041bbd56d071feead6d4cb01c6 Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 8 Jul 2022 21:40:25 +0800 Subject: [PATCH] Fix bug. --- move_site.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move_site.sh b/move_site.sh index 09e2ae2..0ed48c2 100644 --- a/move_site.sh +++ b/move_site.sh @@ -69,7 +69,7 @@ else cd $local_store_path sudo_command cp -f "$(basename $nginx_file)" /etc/nginx/orbit_sites/. new_nginx_file="/etc/nginx/orbit_sites/$(basename $nginx_file)" - mongorestore -d $db_name $(basename $mongo_output) --drop + mongorestore -d $db_name $(basename $mongo_output)/$db_name --drop if [[ ! -z $match_ssl ]]; then if [[ ! -z $org_ssl_dir ]]; then sudo_command mkdir -p $org_ssl_dir