This commit is contained in:
BoHung Chiu 2022-09-12 22:33:21 +08:00
parent ef08ea036b
commit 56147289d5
2 changed files with 4 additions and 4 deletions

View File

@ -106,9 +106,9 @@ else
local_store_path="$HOME/orbit_sites/$new_site_name"
mkdir -p "$local_store_path"
if [[ -z "$use_local_command" ]]; then
$scp_command$root_path/* $local_store_path/.
$scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null
else
$scp_command$root_path/* $local_store_path/.
$scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null
fi
cd $local_store_path
new_nginx_file="/etc/nginx/orbit_sites/$new_site_name"

View File

@ -112,9 +112,9 @@ else
local_store_path="$HOME/orbit_sites/$new_site_name"
mkdir -p "$local_store_path"
if [[ -z "$use_local_command" ]]; then
$scp_command$root_path/* $local_store_path/.
$scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null
else
$scp_command$root_path/* $local_store_path/.
$scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null
fi
cd $local_store_path
new_nginx_file="/etc/nginx/orbit_sites/$new_site_name"