summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drakpxelinux.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index a9c5d8e..595d1fd 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;
- $_ = "\t'deploy_server' => \"$ip_address:3710\",\n" . $_ if /^\s*};\s*$/;
+ $_ .= "\t'deploy_server' => \"$ip_address:3710\",\n" if /^\s*\$o\s*=\s*{$/;
} $auto_cfg;
$data->set_text("http://$ip_address:3712/auto_" . $profile . "_" . $label . ".pl");
}