diff options
Diffstat (limited to 'docs/static/files/setup.sh')
| -rw-r--r-- | docs/static/files/setup.sh | 69 |
1 files changed, 19 insertions, 50 deletions
diff --git a/docs/static/files/setup.sh b/docs/static/files/setup.sh index 458995f..a9a029d 100644 --- a/docs/static/files/setup.sh +++ b/docs/static/files/setup.sh @@ -8,72 +8,41 @@ echo "Detected operating system as:" echo -e "\033[32m$osstr\033[0m" osname=`echo "$osstr" |awk '{print $1}'` osver=`echo "$osstr" |sed 's/GNU\/Linux//g'` +echo -e "$osver Detected" +apt update && apt install curl case `echo $osver` in - "Debian 13"*) - echo "Installing GPG signing key, please wait..." - curl https://online-amateur-radio-club-m0ouk.github.io/oarc-packages/hibby.key | tee /etc/apt/trusted.gpg.d/hibby.asc - echo -e "\033[32mGPG signing key installed correctly.\033[0m" - echo "Adding Debian testing repository for OARC packages..." - echo "#OARC Packet Radio Packages" >> /etc/apt/sources.list - echo "deb https://online-amateur-radio-club-m0ouk.github.io/oarc-packages testing main" >> /etc/apt/sources.list + "Debian trixie/sid"*) + echo "Installing Repo, please wait..." + curl http://repo.hibbian.org/packetrepo/pool/main/h/hibbian-archive-keyring/hibbian-archive-keyring_20240924~packetrepo~TRIXIE+2_all.deb | tee /tmp/hibbian-archive-keyring.deb + apt install /tmp/hibbian-archive-keyring.deb echo -e "\033[32mRepository added correctly.\033[0m" ;; "Debian 12"*) - echo "Installing GPG signing key, please wait..." - curl https://online-amateur-radio-club-m0ouk.github.io/oarc-packages/hibby.key | tee /etc/apt/trusted.gpg.d/hibby.asc - echo -e "\033[32mGPG signing key installed correctly.\033[0m" - echo "Adding Debian stable repository for OARC packages..." - echo "#OARC Packet Radio Packages" >> /etc/apt/sources.list - echo "deb https://online-amateur-radio-club-m0ouk.github.io/oarc-packages bookworm main" >> /etc/apt/sources.list - echo -e "\033[32mRepository added correctly.\033[0m" - ;; - "Ubuntu 22.04"*) - echo "Installing GPG signing key, please wait..." - curl https://online-amateur-radio-club-m0ouk.github.io/oarc-packages/hibby.key | tee /etc/apt/trusted.gpg.d/hibby.asc - echo -e "\033[32mGPG signing key installed correctly.\033[0m" - echo "Adding Ubuntu jammy repository for OARC packages..." - echo "#OARC Packet Radio Packages" >> /etc/apt/sources.list - echo "deb https://online-amateur-radio-club-m0ouk.github.io/oarc-packages jammy main" >> /etc/apt/sources.list - echo -e "\033[32mRepository added correctly.\033[0m" - ;; - "Ubuntu 24.04"*) - echo "Installing GPG signing key, please wait..." - curl https://online-amateur-radio-club-m0ouk.github.io/oarc-packages/hibby.key | tee /etc/apt/trusted.gpg.d/hibby.asc - echo -e "\033[32mGPG signing key installed correctly.\033[0m" - echo "Adding Ubuntu jammy repository for OARC packages..." - echo "#OARC Packet Radio Packages" >> /etc/apt/sources.list - echo "deb https://online-amateur-radio-club-m0ouk.github.io/oarc-packages noble main" >> /etc/apt/sources.list + echo "Installing Repo, please wait..." + curl http://repo.hibbian.org/packetrepo/pool/main/h/hibbian-archive-keyring/hibbian-archive-keyring_20240924~packetrepo12+2_all.deb | tee /tmp/hibbian-archive-keyring.deb + apt install /tmp/hibbian-archive-keyring.deb echo -e "\033[32mRepository added correctly.\033[0m" ;; "Raspbian 12"*) - echo "Installing GPG signing key, please wait..." - curl https://online-amateur-radio-club-m0ouk.github.io/oarc-packages/hibby.key | tee /etc/apt/trusted.gpg.d/hibby.asc - echo -e "\033[32mGPG signing key installed correctly.\033[0m" - echo "Adding Raspberry Pi OS stable repository for OARC packages..." - echo "#OARC Packet Radio Packages" >> /etc/apt/sources.list - echo "deb https://online-amateur-radio-club-m0ouk.github.io/oarc-packages bookworm main" >> /etc/apt/sources.list + echo "Installing Repo, please wait..." + curl http://repo.hibbian.org/packetrepo/pool/main/h/hibbian-archive-keyring/hibbian-archive-keyring_20240924~packetrepo12+2_all.deb | tee /tmp/hibbian-archive-keyring.deb + apt install /tmp/hibbian-archive-keyring.deb echo -e "\033[32mRepository added correctly.\033[0m" ;; "Raspbian 11"*) - echo "Installing GPG signing key, please wait..." - curl https://online-amateur-radio-club-m0ouk.github.io/oarc-packages/hibby.key | tee /etc/apt/trusted.gpg.d/hibby.asc - echo -e "\033[32mGPG signing key installed correctly.\033[0m" - echo "Adding Raspberry Pi OS oldstable repository for OARC packages..." - echo "#OARC Packet Radio Packages" >> /etc/apt/sources.list - echo "deb https://online-amateur-radio-club-m0ouk.github.io/oarc-packages bullseye main" >> /etc/apt/sources.list + echo "Installing Repo, please wait..." + curl http://repo.hibbian.org/packetrepo/pool/main/h/hibbian-archive-keyring/hibbian-archive-keyring_20240924~packetrepo11+2_all.deb | tee /tmp/hibbian-archive-keyring.deb + apt install /tmp/hibbian-archive-keyring.deb echo -e "\033[32mRepository added correctly.\033[0m" ;; "Debian 11"*) - echo "Installing GPG signing key, please wait..." - curl https://online-amateur-radio-club-m0ouk.github.io/oarc-packages/hibby.key | tee /etc/apt/trusted.gpg.d/hibby.asc - echo -e "\033[32mGPG signing key installed correctly.\033[0m" - echo "Adding Raspberry Pi OS oldstable repository for OARC packages..." - echo "#OARC Packet Radio Packages" >> /etc/apt/sources.list - echo "deb https://online-amateur-radio-club-m0ouk.github.io/oarc-packages bullseye main" >> /etc/apt/sources.list + echo "Installing Repo, please wait..." + curl http://repo.hibbian.org/packetrepo/pool/main/h/hibbian-archive-keyring/hibbian-archive-keyring_20240924~packetrepo11+2_all.deb | tee /tmp/hibbian-archive-keyring.deb + apt install /tmp/hibbian-archive-keyring.deb echo -e "\033[32mRepository added correctly.\033[0m" ;; *) - echo "No repository to add - check you are running a compatible operating system. Please see https://online-amateur-radio-club-m0ouk.github.io/oarc-packages/ for more information" && exit + echo "No repository to add - check you are running a compatible operating system. Please see https://www.hibbian.org for more information" && exit ;; esac echo "Updating your package lists..." |
