diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-08-15 15:54:16 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-08-15 15:55:29 +0200 |
commit | a2e3cd4491b11fc68645c9a8a014db602f680440 (patch) | |
tree | fd0cfdc7abb09f89f73aee23f736198f613f728a | |
parent | 5144679b87893d8e5fd187fcdf6fc2a1ba85478f (diff) | |
download | dotfiles-a2e3cd4491b11fc68645c9a8a014db602f680440.tar.gz dotfiles-a2e3cd4491b11fc68645c9a8a014db602f680440.tar.xz dotfiles-a2e3cd4491b11fc68645c9a8a014db602f680440.zip |
Firstrun scripts: add autoconfig for elinks
- make sure SSL peer certificate verification is on
- use custom CA bundle for that
- set config.saving_style so that no banner is displayed when running
elinks for the first time
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r-- | scripts/firstrun/70-elinks | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/firstrun/70-elinks b/scripts/firstrun/70-elinks new file mode 100644 index 0000000..5cd34bd --- /dev/null +++ b/scripts/firstrun/70-elinks @@ -0,0 +1,10 @@ +# see ../certs/cert-import +mkdir ~/.elinks 2>/dev/null +elinks -config-dump | sed -e "s|^\([ \t]\+\)\(set[ \t]\+"\ +"connection.ssl.cert_verify[ \t]\+=[ \t]\+\)\(.*\)|\1#\2\3\n\1\2"\ +"1|" -e "s|^\([ \t]\+\)\(set[ \t]\+"\ +"connection.ssl.trusted_ca_file[ \t]\+=[ \t]\+\)\(.*\)|\1#\2\3\n\1\2"\ +"\"${HOME}/.pki/tls/certs/ca-bundle.crt\"|" -e "s|^\([ \t]\+\)\(set[ \t]\+"\ +"config.saving_style[ \t]\+=[ \t]\+\)\(.*\)|\1#\2\3\n\1\2"\ +"3|" \ +> ~/.elinks/elinks.conf |