aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/update_deb.sh
blob: c5947d996e8be0334addbfd5d2c86286b6cde020 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# This file is part of Firejail project
# Copyright (C) 2014-2024 Firejail Authors
# License GPL v2

# Purpose: Fetch, compile, and install firejail from GitHub source. For
# Debian-based distros only (Ubuntu, Mint, etc).
set -e

git clone --depth=1 https://github.com/netblue30/firejail.git
cd firejail
./configure

# Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916920
sed -i "s/# restricted-network .*/restricted-network yes/" \
    etc/firejail.config

make deb
sudo dpkg -i ./*.deb
echo "Firejail updated."
cd ..
rm -rf firejail