Commit 9d7fb0ab authored by daidekun's avatar daidekun

$default_conf_file

parent 77a8aa47
......@@ -27,10 +27,10 @@ echo "sed xyqb.com to q-gp.com"
find ${package_path}/ -name "*.js" | xargs sed -i "s/.xyqb.com/-$NAMESPACE.q-gp.com/g"
sed -i "s/xterm.js demo/${SYSTEM_NAME}@${NAMESPACE}/" /home/qg-xterm/demo/index.html
file="/usr/local/openresty/nginx/conf/conf.d/${SYSTEM_NAME}.vh.conf"
if [ -f "$file" ]
default_conf_file="/usr/local/openresty/nginx/conf/conf.d/default.vh.conf"
if [ -f "$default_conf_file" ]
then
sed -i "s/SYSTEM_NAME/${SYSTEM_NAME}/" $file
sed -i "s/SYSTEM_NAME/${SYSTEM_NAME}/" $default_conf_file
fi
echo "/usr/bin/openresty -g 'daemon off;'"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment