-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(gui-client/linux): add install script and change group to firezone-client
#4879
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 - |
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 | ||
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" | ||
Comment on lines
+23
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't we just need to restart the current login session? I.e. logout and back in? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried on 20.04, but it doesn't seem to work. Maybe it's something particular Ubuntu does, I know it used to work on other distros in the past. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just in case we need it to be separate from the gateway group