Commit ee4c5aca authored by mcramer's avatar mcramer
Browse files

- Minor fixes in new patch script

parent e43a5e56
......@@ -107,7 +107,7 @@ if(!$patch_data) {
$patch_text = @file_get_contents('http://ispconfig.org/downloads/patches/' . $patch_id . '.txt');
if($patch_text) {
$ok = simple_query("Patch description:\n".$patch_text."\n".str_repeat("-", 80)."Do you really want to apply this patch now?", array('y','n'), 'y');
$ok = simple_query("Patch description:\n".str_repeat("-", 80)."\n".$patch_text."\n".str_repeat("-", 80)."\nDo you really want to apply this patch now?", array('y','n'), 'y');
if($ok != 'y') {
swriteln("Patch terminated by user.\n");
die();
......@@ -121,6 +121,8 @@ chdir('/usr/local/ispconfig');
passthru('patch -p0 < ' . escapeshellarg($temp_file));
unlink($temp_file);
exit;
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment