1
0
Fork 0

0-init.sh: replace git-prompt (no longer needed) with the ca-cert-whatever for aria2c on RHEL

This commit is contained in:
Pratham Patel 2024-01-08 17:57:51 +05:30
parent 466502cdf6
commit ad07843c3a
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 5 additions and 5 deletions

View File

@ -10,10 +10,10 @@ if [[ ! -f "${HOME}/.config/alacritty/platform.yml" ]]; then
fi
fi
if ! command -v nixos-rebuild > /dev/null; then
if [[ ! -f "${HOME}/.local/scripts/other-common-scripts/git-prompt.sh" ]]; then
pushd "${HOME}/.local/scripts/other-common-scripts"
wget 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh'
popd
# for some reason Fedora/RHEL does not have a '/etc/ssl/certs/ca-certificates.crt'
# instead they have a '/etc/pki/tls/certs/ca-bundle.crt'
if [[ "$(uname -s)" == 'Linux' ]]; then
if grep "ID_LIKE=*.rhel*." /etc/os-release > /dev/null; then
sudo ln -s /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt
fi
fi