From 43a6d02efd812e149f345647349b26fb8dc1b962 Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Wed, 22 May 2024 21:03:06 +0300 Subject: [PATCH] support for rocky (=almalinux) --- run_onchange_after_install_main_deps.sh.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run_onchange_after_install_main_deps.sh.tmpl b/run_onchange_after_install_main_deps.sh.tmpl index d81c353..ce7f9b2 100644 --- a/run_onchange_after_install_main_deps.sh.tmpl +++ b/run_onchange_after_install_main_deps.sh.tmpl @@ -91,7 +91,7 @@ pad() { } -{{ if eq .chezmoi.osRelease.id "almalinux" -}} +{{ if eq .chezmoi.osRelease.id "almalinux" "rocky" -}} echo -e "--> "$Blue$1$Blue"Installing prerequestative ncurses for this script's interface"$NC sudo dnf install ncurses -y 2>&1|pad @@ -109,7 +109,7 @@ new_line "Update caches and upgrade packages" fi brew update 2>&1|pad -{{ else if eq .chezmoi.osRelease.id "fedora" "almalinux" -}} +{{ else if eq .chezmoi.osRelease.id "fedora" "almalinux" "rocky" -}} sudo dnf update -y 2>&1|pad {{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} @@ -130,7 +130,7 @@ new_line "Install base packages" {{ else if eq .chezmoi.osRelease.id "fedora" -}} sudo dnf install $BASE_PACKAGES direnv kitty-terminfo util-linux-user python3-pipx -y 2>&1|pad -{{ else if eq .chezmoi.osRelease.id "almalinux" -}} +{{ else if eq .chezmoi.osRelease.id "almalinux" "rocky" -}} sudo dnf install epel-release -y 2>&1|pad sudo dnf install $BASE_PACKAGES kitty-terminfo which util-linux-user xz pipx -y 2>&1|pad @@ -195,7 +195,7 @@ new_line "Install neovim, fish, atuin, jump and the rest" new_line "via NIX" nix-env -iA nixpkgs.atuin nixpkgs.jump nixpkgs.du-dust nixpkgs.lazygit 2>&1|pad -{{ else if eq .chezmoi.osRelease.id "almalinux" -}} +{{ else if eq .chezmoi.osRelease.id "almalinux" "rocky" -}} sudo dnf install neovim fish $ACT_PACKAGES fd-find pam_ssh_agent_auth -y 2>&1|pad new_line "via NIX" nix-env -iA nixpkgs.fish nixpkgs.neovim nixpkgs.direnv nixpkgs.atuin nixpkgs.jump nixpkgs.du-dust nixpkgs.lazygit 2>&1|pad