summaryrefslogtreecommitdiffstats
path: root/drakpxelinux.pl
diff options
context:
space:
mode:
Diffstat (limited to 'drakpxelinux.pl')
-rw-r--r--drakpxelinux.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index 343e00a..a9c5d8e 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -520,7 +520,7 @@ sub edit_box_item {
cp_af($file, $auto_cfg);
substInFile {
s/^.*deploy_server.*\n//g;
- $_ .= "\$o->{deploy_server} = \"$ip_address:3710\";\n" if eof;
+ $_ = "\t'deploy_server' => \"$ip_address:3710\",\n" . $_ if /^\s*};\s*$/;
} $auto_cfg;
$data->set_text("http://$ip_address:3712/auto_" . $profile . "_" . $label . ".pl");
}