fix: rename quickstart file
This commit is contained in:
@@ -9,32 +9,33 @@ wfc_rel_dir_205=/mnt/public/release/omc/wfc
|
|||||||
tars_rel_dir_205=${wfc_rel_dir_205}/tars/
|
tars_rel_dir_205=${wfc_rel_dir_205}/tars/
|
||||||
debs_rel_dir_205=${wfc_rel_dir_205}/debs/
|
debs_rel_dir_205=${wfc_rel_dir_205}/debs/
|
||||||
server_ip_205=192.168.1.205
|
server_ip_205=192.168.1.205
|
||||||
rel_date=$(date +%Y%m%d)
|
|
||||||
passwd=admin123
|
passwd=admin123
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: sh cpto205.sh {rel_date}"
|
echo "Usage: sh cpto205.sh {rel_date}"
|
||||||
exit 1
|
echo " {rel_date} should be in the format YYYYMMDD"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ ! -z "$1" ]; then
|
if [ ! -z "$1" ]; then
|
||||||
rel_date=$1
|
rel_date=$1
|
||||||
|
else
|
||||||
|
rel_date=$(date +%Y%m%d)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
quickstart_file=${build_doc_dir}/03-wfc-quickstart.pdf
|
quickstart_file=${build_doc_dir}/03-WANFi软件快速安装.pdf
|
||||||
latest_tar_file=$(ls -t ${local_tars_rel_dir}/*${rel_date}* 2>/dev/null | head -n 1)
|
latest_tar_file=$(ls -t ${local_tars_rel_dir}/*${rel_date}* 2>/dev/null | head -n 1)
|
||||||
latest_deb_file=$(ls -t ${local_debs_rel_dir}/*${rel_date}* 2>/dev/null | head -n 1)
|
latest_deb_file=$(ls -t ${local_debs_rel_dir}/*${rel_date}* 2>/dev/null | head -n 1)
|
||||||
|
|
||||||
# Use expect to automatically answer yes and input password for SCP commands
|
# Use expect to automatically answer yes and input password for SCP commands
|
||||||
expect <<EOF
|
|
||||||
set timeout 180
|
|
||||||
EOF
|
|
||||||
|
|
||||||
if [ -n "${latest_deb_file}" ]; then
|
if [ -n "${latest_deb_file}" ]; then
|
||||||
expect <<EOF
|
expect <<EOF
|
||||||
spawn scp ${latest_tar_file} agtuser@${server_ip_205}:${tars_rel_dir_205}
|
spawn scp ${latest_deb_file} agtuser@${server_ip_205}:${debs_rel_dir_205}
|
||||||
expect {
|
expect {
|
||||||
"yes/no" { send "yes\n"; exp_continue }
|
"yes/no" {
|
||||||
|
send "yes\n"
|
||||||
|
exp_continue
|
||||||
|
}
|
||||||
"password:" { send "$passwd\n" }
|
"password:" { send "$passwd\n" }
|
||||||
}
|
}
|
||||||
expect eof
|
expect eof
|
||||||
@@ -43,7 +44,7 @@ fi
|
|||||||
|
|
||||||
if [ -n "${latest_tar_file}" ]; then
|
if [ -n "${latest_tar_file}" ]; then
|
||||||
expect <<EOF
|
expect <<EOF
|
||||||
spawn scp ${latest_deb_file} agtuser@${server_ip_205}:${debs_rel_dir_205}
|
spawn scp ${latest_tar_file} agtuser@${server_ip_205}:${tars_rel_dir_205}
|
||||||
expect {
|
expect {
|
||||||
"yes/no" { send "yes\n"; exp_continue }
|
"yes/no" { send "yes\n"; exp_continue }
|
||||||
"password:" { send "$passwd\n" }
|
"password:" { send "$passwd\n" }
|
||||||
|
|||||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
# WANFi Control and Billing System
|
# WANFi软件快速安装
|
||||||
|
|
||||||
## 准备工作
|
## 准备工作
|
||||||
|
|
||||||
BIN
docs/03-configuration/03-WANFi软件快速安装.pdf
Normal file
BIN
docs/03-configuration/03-WANFi软件快速安装.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user