Something went wrong. Try again.
Mirroring: https://github.com/MunifTanjim/scripts.sh
Something went wrong. Try again.
scripts.sh setup-apt-fast
846 B · 36 lines
at main
12345678910111213141516171819202122232425262728293031323334353637#!/usr/bin/env bash
# House Keeping_GIT_DIR="${HOME}/Dev/github/ilikenwf"mkdir -p "${_GIT_DIR}"cd "${_GIT_DIR}"
# Initializationif [[ -d "${_GIT_DIR}/apt-fast" ]]; then echo "apt-fast is already installed!" echo "Updating apt-fast..." cd apt-fast git pullelse echo "Installing apt-fast..." git clone --depth 1 https://github.com/ilikenwf/apt-fast cd apt-fastfi
echo "Running build..."sudo cp apt-fast /usr/local/bin/sudo chmod +x /usr/local/bin/apt-fastif [[ ! -f /etc/apt-fast.conf ]]; then sudo cp apt-fast.conf /etcfi
echo "Installing dependencies..."sudo apt install -y aria2
echo "Setting up man page..."sudo cp ./man/apt-fast.8 /usr/share/man/man8sudo gzip -f9 /usr/share/man/man8/apt-fast.8sudo cp ./man/apt-fast.conf.5 /usr/share/man/man5sudo gzip -f9 /usr/share/man/man5/apt-fast.conf.5
echo "Done!"