diff options
author | Simon Rettberg | 2014-11-19 19:51:49 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-11-19 19:51:49 +0100 |
commit | d3e058cc3450cea589484a600c12fffb6ef8e330 (patch) | |
tree | 201e900ede72851fe6ed29ee951ef6a05c796d1d /modules/minilinux.inc.php | |
parent | Update config example, style, translations (diff) | |
download | slx-admin-d3e058cc3450cea589484a600c12fffb6ef8e330.tar.gz slx-admin-d3e058cc3450cea589484a600c12fffb6ef8e330.tar.xz slx-admin-d3e058cc3450cea589484a600c12fffb6ef8e330.zip |
Add HTTPS config module for webif, update everything to use FileUtil class, minor fixes
Diffstat (limited to 'modules/minilinux.inc.php')
-rw-r--r-- | modules/minilinux.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/minilinux.inc.php b/modules/minilinux.inc.php index df2a0839..5027c1b7 100644 --- a/modules/minilinux.inc.php +++ b/modules/minilinux.inc.php @@ -65,11 +65,13 @@ class Page_MiniLinux extends Page return; } $file = false; + $gpg = false; foreach ($data['systems'] as &$system) { if ($system['id'] !== $id) continue; foreach ($system['files'] as &$f) { if ($f['name'] !== $name) continue; $file = $f; + if (isset($f['gpg'])) $gpg = $f['gpg']; break; } } @@ -79,7 +81,8 @@ class Page_MiniLinux extends Page } $task = Taskmanager::submit('DownloadFile', array( 'url' => CONFIG_REMOTE_ML . '/' . $id . '/' . $name, - 'destination' => CONFIG_HTTP_DIR . '/' . $id . '/' . $name + 'destination' => CONFIG_HTTP_DIR . '/' . $id . '/' . $name, + 'gpg' => $gpg )); if (!isset($task['id'])) { echo 'Error launching download task: ' . $task['statusCode']; |