Update for fedora atomic

This commit is contained in:
askiiart 2024-07-10 13:21:06 -05:00
parent 46cdfbe486
commit e8242b0ad0
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
13 changed files with 99 additions and 15 deletions

View file

@ -1,5 +1,4 @@
#!/usr/bin/env bash
EDITOR=nano
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
@ -20,6 +19,17 @@ elif command_exists "dnf"; then
cd ~
git clone https://git.askiiart.net/askiiart/gpg-email-helper
cd -
elif command_exists "rpm-ostree"; then
if ! command_exists "spamassassin"; then
rpm-ostree install spamassassin claws-mail claws-mail-plugins-pgp claws-mail-plugins-spamassassin claws-mail-plugins-rssyl
read -p "Press enter to reboot, then run do-everything.bash again"
reboot
else
sudo systemctl enable --now spamassassin.service
cd ~
git clone https://git.askiiart.net/askiiart/gpg-email-helper
cd -
fi
elif command_exists "xbps-install"; then
sudo xbps-install claws-mail spamassassin
ln -s /etc/sv/spamd /var/service/