diff --git a/ntfy-install/ntfy-install.sh b/ntfy-install/ntfy-install.sh new file mode 100755 index 0000000..d665f10 --- /dev/null +++ b/ntfy-install/ntfy-install.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +sudo mkdir -p /etc/apt/keyrings +sudo curl -L -o /etc/apt/keyrings/ntfy.gpg https://archive.ntfy.sh/apt/keyring.gpg +sudo apt install apt-transport-https -y +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/ntfy.gpg] https://archive.ntfy.sh/apt stable main" | sudo tee /etc/apt/sources.list.d/ntfy.list +sudo apt update +sudo apt install ntfy -y + diff --git a/setup/1-choose-packages.sh b/setup/1-choose-packages.sh index aa491dd..1766706 100755 --- a/setup/1-choose-packages.sh +++ b/setup/1-choose-packages.sh @@ -94,6 +94,19 @@ install_collection 'extra utilities: (ncdu, mosh, zip, php, rclone, etc.)' ncdu # ---------------------------------------------------------- +read -p 'Install NTFY Client? [y/N]: ' response +case "${response}" in + [Yy]* ) + "${script_dir}/../ntfy-install/ntfy-install.sh" + ;; + * ) + echo 'Skipping' + ;; +esac +echo '' + +# ---------------------------------------------------------- + if [[ -n $(command -v 'php') ]]; then read -p 'Install PHP Composer? [y/N]: ' response case "${response}" in