Branch: Tag:

2001-08-31

2001-08-31 09:11:37 by Fredrik Noring <noring@nocrew.org>

Fix for [bug 1935 (#1935)] where the server_version file was not updated during upgrade.

Rev: server/bin/create_configif.pike:1.34

1:   /* -  * $Id: create_configif.pike,v 1.33 2001/03/23 14:35:07 noring Exp $ +  * $Id: create_configif.pike,v 1.34 2001/08/31 09:11:37 noring Exp $    *    * Create an initial administration interface server.    */
106:    search( Stdio.read_file( configdir+"/"+cf ),    "'config_filesystem#0'" ) != -1 )    { +  string server_version = Stdio.read_file("VERSION"); +  if(server_version) +  Stdio.write_file(configdir+"/server_version","server-"+server_version);    werror(" There is already an administration interface present in "    "this\n server. A new one will not be created.\n");    if(!admin++) exit( 0 );
267:    mkdirhier( configdir );    string server_version = Stdio.read_file("VERSION");    if(server_version) -  Stdio.write_file(configdir+"server_version", "server-"+server_version); +  Stdio.write_file(configdir+"/server_version", "server-"+server_version);    Stdio.write_file( configdir+replace( name, " ", "_" ),    replace(   #"