Fix Linux dnf install

This commit is contained in:
Kenneth Benzie 2025-08-17 20:45:15 +01:00
parent 70d13b30b1
commit 2fd5ae8aa6

View File

@ -57,7 +57,7 @@ fi
if command -v dnf &> /dev/null; then
agree "Upgrade dnf packages" "N" && sudo dnf upgrade
echo "Install git python3-pip"
sudo dnf install --assumeyes git python3-pip
sudo dnf install --assumeyes git python3-pip python3-libdnf5
fi
echo "Install ansible"
@ -68,7 +68,10 @@ if [ ! -d ~/.config/local ]; then
git clone https://git.infektor.net/config/local.git ~/.config/local
fi
agree "Install 1password" && \
if agree "Install 1password"; then
pushd ~/.config/local
~/.local/bin/ansible-playbook ~/.config/local/playbooks/1password.yaml
popd
fi
[ -f $0 ] && agree "Remove $0" "N" && rm $0 || exit 0