Commit e43a5e56 authored by mcramer's avatar mcramer
Browse files

- Improved patch script

parent 49d9418c
......@@ -105,6 +105,15 @@ if(!$patch_data) {
die();
}
$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');
if($ok != 'y') {
swriteln("Patch terminated by user.\n");
die();
}
}
$temp_file = tempnam(sys_get_temp_dir(), 'ispc');
file_put_contents($temp_file, $patch_data);
......
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