From ee4c5aca91c07a9a417c6ce810008b75211db38d Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Mon, 26 Aug 2013 12:44:46 -0400
Subject: [PATCH] - Minor fixes in new patch script
---
server/scripts/ispconfig_patch.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/server/scripts/ispconfig_patch.php b/server/scripts/ispconfig_patch.php
index 02c75e1..3e7694a 100644
--- a/server/scripts/ispconfig_patch.php
+++ b/server/scripts/ispconfig_patch.php
@@ -107,7 +107,7 @@
$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 @@
passthru('patch -p0 < ' . escapeshellarg($temp_file));
+unlink($temp_file);
+
exit;
?>
\ No newline at end of file
--
Gitblit v1.9.1