Files
firezone/rust/gui-client/src-tauri/deb_files/postinst
Reactor Scram d59c3fef0a build(gui-client): add post-install and pre-remove scripts to the deb package (#5011)
Closes #4987

```[tasklist]
### Before merging
- [x] Get an x64 test VM on the Windows laptop and test a CI-built deb
```
2024-05-16 23:03:21 +00:00

16 lines
385 B
Bash
Executable File

#!/usr/bin/env bash
# Usage: dpkg will call this after installing our files
# This must be idempotent
set -euo pipefail
SERVICE_NAME="firezone-client-ipc"
# Creates the system group `firezone-client`
sudo systemd-sysusers
echo "Starting and enabling Firezone IPC service..."
sudo systemctl daemon-reload
sudo systemctl enable "$SERVICE_NAME"
sudo systemctl restart "$SERVICE_NAME"