diff --git a/README.md b/README.md index 3683db5..ad537dd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # fedorapostinstall -this is a post install script for fedora +this is a post install script for fedora \ No newline at end of file diff --git a/postinstall.sh b/postinstall.sh index c8869dd..0ef8fc8 100644 --- a/postinstall.sh +++ b/postinstall.sh @@ -30,3 +30,40 @@ else echo -e "${rouge}ShellCheck est déja installé ${neutre}" echo "le script continue la vérification et l'installation des programmes" fi + +if [ ! -f "/usr/bin/codium" ]; then + echo -e "${bleu}ont install vscodium ?${neutre}" + read -r codium + case $codium in + N | n) + echo "VSCodium ne sera pas installé, tu ne sera pas un programmeur jeune padawan" + echo "le script continue la vérification et l'installation des programmes" + ;; + O | o |*) + echo -e "${jaune}j'installe VSCodium, tu sera un programmeur OpenSource Luke" + sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg + printf "[gitlab.com_paulcarroty_vscodium_repo]\nname=download.vscodium.com\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | sudo tee -a /etc/yum.repos.d/vscodium.repo + sudo dnf install codium -y + ;; + esac +else + echo -e "${rouge}VSCodium est déjà installé, tu es un grand monsieur ${neutre}" + echo "le script continue la vérification et l'installation des programmes" +fi + +if [ ! -f "/usr/bin/keepassxc"]; then + echo -e "${vert}tu veux installer Keepassxc? ${neutre}" + read -r $keepassxc in + N | n) + echo "KeepassXC ne sera pas installé, honte à toi" + echo "le script continue la vérification et l'installation des programmes" + ;; + O | o |*) + echo -e "${bleu}Installation de KeepassXC,la force Luke ${neutre}" + sudo dnf install keepassxc -y + ;; + esac +else + echo -e "${rouge}KeepassXC est déjà installé, la force est déjà en toi ...${neutre}" + echo "Le script continue la vérification et l'installation des programmes" +fi