aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/update_deb.sh
blob: 4c715aaf7fa7ddad7047c3424f3954932c10bb44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# This file is part of Firejail project
# Copyright (C) 2014-2021 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 --enable-apparmor --prefix=/usr

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

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