-sed -i "s@var \+xhr_rd_cookiepath \+= \+\"[^\"]*\";@var xhr_rd_cookiepath = \"$cookie_path\";@g" ${web_path}/xhr.js
-sed -i "s@var \+cookiepath \+= \+\"[^\"]*\";@var cookiepath = \"$cookie_path\";@g" ${web_path}/commons.js
+# config file installation or diff
+if [ -f "$etc_path/$brisk_conf" ]; then
+ echo "Config file $etc_path/$brisk_conf exists."
+ echo "=== Dump the diff. ==="
+ diff -u "$etc_path/$brisk_conf" "${web_path}__""/Obj/brisk.conf-templ.pho"
+ echo "=== End dump. ==="
+else
+ echo "Config file $etc_path/$brisk_conf not exists."
+ echo "Install a template."
+ cp "${web_path}__""/Obj/brisk.conf-templ.pho" "$etc_path/$brisk_conf"
+fi