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