cb9bec2002-02-14Marcus Wellhardh  void run(object env) { write("\n Configuring port number for external access to the internal\n"
8750972002-03-05Fredrik Noring  " MySQL database (leave empty for no external access). External\n"
6bdc082002-04-23Fredrik Noring  " MySQL access is needed when creating an CMS Instant site.\n"
8750972002-03-05Fredrik Noring  "\n");
3a33c32002-03-05Fredrik Noring 
cb9bec2002-02-14Marcus Wellhardh  Stdio.File infd = Stdio.stdin, outfd = Stdio.stdout; Stdio.Terminfo.Termcap term = Stdio.Terminfo.getTerm(); Tools.Install.Readline rl = Tools.Install.Readline();
3cd0582002-04-05Henrik Grubbström (Grubba)  string in = rl->edit(env->get("ROXEN_MYSQL_TCP_PORT") || "22299",
faa64f2002-03-04Fredrik Noring  "MySQL port number: ");
cb9bec2002-02-14Marcus Wellhardh  write("\n"); sscanf(in, "%d", int port); if(port) {
3cd0582002-04-05Henrik Grubbström (Grubba)  if((string)port != env->get("ROXEN_MYSQL_TCP_PORT")) env->set("ROXEN_MYSQL_TCP_PORT", port);
cb9bec2002-02-14Marcus Wellhardh  } else
3cd0582002-04-05Henrik Grubbström (Grubba)  env->remove("ROXEN_MYSQL_TCP_PORT");
cb9bec2002-02-14Marcus Wellhardh }