convert comment lines from gemserv config file to ini file syntax

adds a ";" at the beginning of the line if it starts with "#"
This commit is contained in:
Adële 2021-06-01 11:47:22 +02:00
parent 99c1c95b36
commit a924ee07d3
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@ else if(CONFIG_TYPE === "gemserv") {
$line = "[server_".$nb."]";
++$nb;
}
// comment lines with ;
if(substr($line,0,1)=='#')
$line = "; ".$line;
}
//reassemble file and parse as array