mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-03-21 10:41:50 +00:00
This is what I've been doing on the testing VMs to exercise the first-run behavior. --------- Signed-off-by: Reactor Scram <ReactorScram@users.noreply.github.com>
25 lines
747 B
Bash
Executable File
25 lines
747 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Usage: ./firezone-client-gui-install.sh ./firezone-client-gui_VERSION_ARCH.deb
|
|
#
|
|
# The `./` is necessary
|
|
#
|
|
# This script should be idempotent
|
|
set -euox pipefail
|
|
|
|
# `apt-get` needs either a leading `./` or `/` to recognize a local file path
|
|
DEB_PATH=$(realpath "$1")
|
|
|
|
echo "Installing Firezone..."
|
|
sudo apt-get install --yes "$DEB_PATH"
|
|
|
|
echo "Adding your user to the firezone-client group..."
|
|
# Creates the system group `firezone-client`
|
|
sudo systemd-sysusers
|
|
sudo adduser "$USER" firezone-client
|
|
|
|
echo "Starting and enabling Firezone IPC service..."
|
|
sudo systemctl enable --now firezone-client-ipc
|
|
|
|
# Unfortunately Ubuntu seems to need a reboot here, at least 20.04 does
|
|
echo "Reboot to finish adding yourself to the group"
|