17
17
app_dir="$install_root/$app_name"
22
22
config_file_path=$app_dir/config/config.js
23
23
if [ -f $config_file_path ]; then
25
25
sed -i "s/mongo_host.*/mongo_host\" : \"${host}\"/" $config_file_path
26
26
sed -i "s/mongo_port.*/mongo_port\" : ${port}/" $config_file_path
32
32
service ${app_name} restart || service ${app_name} start