-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gui-client/linux): add install script and change group to `fire…
- Loading branch information
1 parent
9606dde
commit 35a802d
Showing
7 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This file is part of the Firezone Client. | ||
# This creates the `firezone-client` group automatically at startup | ||
|
||
g firezone-client - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/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 "$DEB_PATH" | ||
|
||
echo "Adding your user to the firezone-client group..." | ||
# Creates the system group `firezone-client` | ||
sudo systemd-sysusers | ||
This comment has been minimized.
Sorry, something went wrong. |
||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ugh, on Arch, this happens automationally if the package contains a sysuser file.