diff --git a/scripts/Software/Collections/school.sh b/scripts/Software/Collections/school.sh index 8f6d4c99..f336da02 100755 --- a/scripts/Software/Collections/school.sh +++ b/scripts/Software/Collections/school.sh @@ -4,6 +4,7 @@ softwareRoot="$dir/.."; source "$dir/personal.sh"; source "$softwareRoot/Java/install.sh"; +source "$softwareRoot/cloudflared/install.sh"; # Install other flatpaks flatpak install -y flathub com.github.xournalpp.xournalpp; diff --git a/scripts/Software/cloudflared/install.sh b/scripts/Software/cloudflared/install.sh new file mode 100755 index 00000000..a2213b94 --- /dev/null +++ b/scripts/Software/cloudflared/install.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Elevate script +if [ ! "$UID" -eq 0 ] +then + sudo bash "$BASH_SOURCE" "$USER"; +else + package="$(mktemp)"; + wget https://github.com/cloudflare/cloudflared/releases/download/2023.3.0/cloudflared-linux-amd64.deb -O "$package"; + dpkg -i "$package"; + rm -f "$package"; +fi