diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-02-07 10:41:41 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-02-07 10:41:41 -0200 |
commit | e5b5e29c3b2a4b76ad412c9a2d55273701505e4c (patch) | |
tree | 81e7a9ebd6d5bd595c75d2ca55eaf2fa3c3f9807 /usr/local | |
parent | db58ccd0f323c8074f477cc53ecd907f38f22d34 (diff) | |
download | pfsense-e5b5e29c3b2a4b76ad412c9a2d55273701505e4c.zip pfsense-e5b5e29c3b2a4b76ad412c9a2d55273701505e4c.tar.gz |
Add support for signed PBI, help ticket #3365:
- Add an option to allow user to accept unsigned packages
- The only missing part is public key, that needs to be added to
/var/db/pbi/keys/pfSense.ssl
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/system_advanced_misc.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index b5f6498..0d00453 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -74,6 +74,7 @@ $pconfig['use_mfs_tmpvar'] = isset($config['system']['use_mfs_tmpvar']); $pconfig['use_mfs_tmp_size'] = $config['system']['use_mfs_tmp_size']; $pconfig['use_mfs_var_size'] = $config['system']['use_mfs_var_size']; $pconfig['noinstalllanspd'] = $config['system']['noinstalllanspd']; +$pconfig['pkg_nochecksig'] = $config['system']['pkg_nochecksig']; $pconfig['powerd_ac_mode'] = "hadp"; if (!empty($config['system']['powerd_ac_mode'])) @@ -188,6 +189,11 @@ if ($_POST) { unset($config['system']['noinstalllanspd']); } + if($_POST['pkg_nochecksig'] == "yes") + $config['system']['pkg_nochecksig'] = true; + else + unset($config['system']['pkg_nochecksig']); + if($_POST['maxmss_enable'] == "yes") { $config['system']['maxmss_enable'] = true; $config['system']['maxmss'] = $_POST['maxmss']; @@ -699,6 +705,18 @@ function tmpvar_checked(obj) { <?php endif; ?> <tr> + <td colspan="2" valign="top" class="listtopic"><?=gettext("Packages settings"); ?></td> + </tr> + <tr> + <td width="22%" valign="top" class="vncell"><?=gettext("Packages signature"); ?></td> + <td width="78%" class="vtable"> + <input name="pkg_nochecksig" type="checkbox" id="pkg_nochecksig" value="yes" <?php if ($pconfig['pkg_nochecksig']) echo "checked=\"checked\""; ?> onclick="tmpvar_checked(this)" /> + <strong><?=gettext("Do NOT check packages signature"); ?></strong><br/> + <?=gettext("Enable this option will make pfSense install any packages without check its signature."); ?> + </td> + </tr> + + <tr> <td width="22%" valign="top"> </td> <td width="78%"> <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> |