diff options
author | Simon Rettberg | 2013-11-16 15:58:23 +0100 |
---|---|---|
committer | Simon Rettberg | 2013-11-16 15:58:23 +0100 |
commit | 22e9b75b1b6c193f58639348e04cc8fbb0b45f9a (patch) | |
tree | ed26a9c67e83de9c87bc903e70e8de971aee1882 /modules | |
parent | Add minilinux download functionality and ipxe compilation scripts (diff) | |
download | slx-admin-22e9b75b1b6c193f58639348e04cc8fbb0b45f9a.tar.gz slx-admin-22e9b75b1b6c193f58639348e04cc8fbb0b45f9a.tar.xz slx-admin-22e9b75b1b6c193f58639348e04cc8fbb0b45f9a.zip |
Fixed two stupid messups
Diffstat (limited to 'modules')
-rw-r--r-- | modules/minilinux.inc.php | 3 | ||||
-rw-r--r-- | modules/sysconfig.inc.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/minilinux.inc.php b/modules/minilinux.inc.php index 3508fb43..49e72616 100644 --- a/modules/minilinux.inc.php +++ b/modules/minilinux.inc.php @@ -10,6 +10,7 @@ if (!User::hasPermission('superadmin')) { function render_module() { $files = array(); + mkdir(CONFIG_HTTP_DIR . "/default", 0755, true); checkFile($files, 'kernel'); checkFile($files, 'initramfs-stage31'); checkFile($files, 'stage32.sqfs'); @@ -62,7 +63,7 @@ function checkFile(&$files, $name) } $existingMd5 = strtolower(preg_replace('/[^0-9a-f]/is', '', $existingMd5)); $remoteMd5 = Util::download($remote, 3, $code); - $remoteMd5 = strtolower(preg_replace('/[^0-9a-f]/is', '', $existingMd5)); + $remoteMd5 = strtolower(preg_replace('/[^0-9a-f]/is', '', $remoteMd5)); if ($code != 200) { Message::addError('remote-timeout', $remote); return false; diff --git a/modules/sysconfig.inc.php b/modules/sysconfig.inc.php index f10446ed..1a171a40 100644 --- a/modules/sysconfig.inc.php +++ b/modules/sysconfig.inc.php @@ -93,7 +93,7 @@ function list_remote_configs() } $data = Util::download(CONFIG_REMOTE_TGZ . '/list.php', 4, $code); if ($code !== 200) { - Message::addError('remote-timeout', CONFIG_REMOTE_TGZ); + Message::addError('remote-timeout', CONFIG_REMOTE_TGZ . '/list.php', $code); return; } $list = json_decode($data, true); |