PortValhalla/scripts/Debian/Software/cloudflared/install.sh

12 lines
294 B
Bash
Raw Normal View History

#!/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