update packaging script
This commit is contained in:
parent
b8cc7e8e57
commit
8581d65962
|
@ -622,7 +622,6 @@ function install_share_etc() {
|
|||
}
|
||||
|
||||
function install_log() {
|
||||
${csudo}rm -rf ${log_dir} || :
|
||||
${csudo}mkdir -p ${log_dir} && ${csudo}chmod 777 ${log_dir}
|
||||
|
||||
${csudo}ln -sf ${log_dir} ${install_main_dir}/log
|
||||
|
@ -935,7 +934,9 @@ function updateProduct() {
|
|||
install_adapter_service
|
||||
install_adapter_config
|
||||
install_keeper_service
|
||||
if [ "${verMode}" != "cloud" ]; then
|
||||
install_keeper_config
|
||||
fi
|
||||
|
||||
openresty_work=false
|
||||
|
||||
|
@ -1036,8 +1037,9 @@ function installProduct() {
|
|||
install_adapter_service
|
||||
install_adapter_config
|
||||
install_keeper_service
|
||||
if [ "${verMode}" != "cloud" ]; then
|
||||
install_keeper_config
|
||||
|
||||
fi
|
||||
openresty_work=false
|
||||
|
||||
|
||||
|
|
|
@ -401,7 +401,14 @@ echo
|
|||
echo "Do you want to remove all the data, log and configuration files? [y/n]"
|
||||
read answer
|
||||
if [ X$answer == X"y" ] || [ X$answer == X"Y" ]; then
|
||||
confirmMsg="I confirm that I would like to delete all data, log and configuration files"
|
||||
echo "Please enter '${confirmMsg}' to continue"
|
||||
read answer
|
||||
if [ X"$answer" == X"${confirmMsg}" ]; then
|
||||
remove_data_and_config
|
||||
else
|
||||
echo "answer doesn't match, skip this step"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
|
|
Loading…
Reference in New Issue