+echo " outconf: \"$outconf\""
+echo " players_n: $players_n"
+echo " tables_n: $tables_n"
+echo " tables_auth_n: $tables_auth_n"
+echo " brisk_auth_conf: \"$brisk_auth_conf\""
+echo " brisk_debug:\"$brisk_debug\""
+echo " web_path: \"$web_path\""
+echo " ftok_path: \"$ftok_path\""
+echo " legal_path: \"$legal_path\""
+echo " proxy_path: \"$proxy_path\""
+echo " cookie_path:\"$cookie_path\""
+echo " brisk_conf:\"$brisk_conf\""
+echo " web_only: \"$web_only\""
+
+if [ ! -z "$outconf" ]; then
+ (
+ echo "#"
+ echo "# Produced automatically by brisk::INSTALL.sh"
+ echo "#"
+ echo "players_n=$players_n"
+ echo "tables_n=$tables_n"
+ echo "tables_auth_n=$tables_auth_n"
+ echo "brisk_auth_conf=\"$brisk_auth_conf\""
+ echo "brisk_debug=\"$brisk_debug\""
+ echo "web_path=\"$web_path\""
+ echo "ftok_path=\"$ftok_path\""
+ echo "proxy_path=\"$proxy_path\""
+ echo "legal_path=\"$legal_path\""
+ echo "cookie_path=\"$cookie_path\""
+ echo "brisk_conf=\"$brisk_conf\""
+ echo "web_only=\"$web_only\""
+ ) > "$outconf"
+fi
+
+max_players=$((40 + players_n * tables_n))
+#
+# Pre-check
+#
+# check for etc path existence
+dsta="$(dirname "$web_path")"
+etc_path="$(searchetc "$dsta" Etc)"
+if [ $? -ne 0 ]; then
+ echo "Etc directory not found"
+ exit 1
+fi