From 0290749cee74d6bdf634e8b42dc1f1a1b6a5b487 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Wed, 21 Feb 2024 18:48:04 -0600 Subject: [PATCH 1/3] Add encrypt hooks script for letsencrypt --- letsencrypt-renewal-hooks/10-restart-services.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 letsencrypt-renewal-hooks/10-restart-services.sh diff --git a/letsencrypt-renewal-hooks/10-restart-services.sh b/letsencrypt-renewal-hooks/10-restart-services.sh new file mode 100644 index 0000000..a970d32 --- /dev/null +++ b/letsencrypt-renewal-hooks/10-restart-services.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +postmap -F hash:/etc/postfix/sni +postmap -F hash:/etc/postfix/vmail_ssl.map +systemctl restart nginx && systemctl restart dovecot && systemctl restart postfix \ No newline at end of file From 005a042263313b7b3e051e11db40a2331dad299a Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Wed, 21 Feb 2024 18:48:33 -0600 Subject: [PATCH 2/3] Add WIP script for getting CVE numbers for Solus Thunderbird changelogs --- solus_utility/get_thunderbird_cve_nums.pl | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 solus_utility/get_thunderbird_cve_nums.pl diff --git a/solus_utility/get_thunderbird_cve_nums.pl b/solus_utility/get_thunderbird_cve_nums.pl new file mode 100644 index 0000000..f6e6c65 --- /dev/null +++ b/solus_utility/get_thunderbird_cve_nums.pl @@ -0,0 +1,41 @@ +#!/usr/bin/env perl + +use Modern::Perl; + +use FindBin; +use lib "$FindBin::RealBin/lib"; + +use Getopt::Long; +use Pod::Usage; +use WWW::Mechanize; +use Data::Dumper; + +my $successful_parse = GetOptions( + 'help|?' => \ my $help, + man => \ my $man, + 'url=s' => \ my $url + ) + or pod2usage(2); + +if ( !$successful_parse || ( @ARGV > 1 ) ) { + die qq{Usage: $0 [ --url]\n}; +} + +if ( !defined $url ) { + die qq{Usage: $0 [ --url]\n}; +} + +# Get url from input param +# https://www.mozilla.org/en-US/security/advisories/mfsa2024-07/ + +my $mechanize = WWW::Mechanize->new(autocheck => 1); +$mechanize->get($url); +my $page = $mechanize->content; + +# Get text from each level-heading class +# ex +#

+# And then Metacpan had a 502 so I couldn't find docs on how to get this X| + + +# Get CVEs in form of CVE-2024-1546 \ No newline at end of file From 3b7e6434b9af8b1cc6a82025b454e4021a59e4be Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Wed, 21 Feb 2024 18:49:00 -0600 Subject: [PATCH 3/3] Setup Solus VMs initial commit --- solus_utility/setup_solus_vm.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 solus_utility/setup_solus_vm.sh diff --git a/solus_utility/setup_solus_vm.sh b/solus_utility/setup_solus_vm.sh new file mode 100644 index 0000000..d8514e1 --- /dev/null +++ b/solus_utility/setup_solus_vm.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +sudo eopkg it -y rsync zsh neovim ripgrep git powerline-fonts simple-scan +chsh -s $(which zsh) + +cp /mnt/vmshare/.aliases ~/ +cp /mnt/vmshare/.bashrc ~/ +cp /mnt/vmshare/.bash_profile ~/ +cp /mnt/vmshare/.zshrc ~/ +cp /mnt/vmshare/.zsh_tlc ~/ + +# Add zsh prompt setup \ No newline at end of file