firejail/contrib/update_deb.sh
Kelvin M. Klann fddab1d193 update_deb.sh: fix not building with apparmor support
This amends commit 9a0fbbd71 ("mkdeb.sh.in: pass remaining arguments to
./configure", 2022-05-13) / PR #5154.

See also #5176.
2022-06-18 01:23:21 -03:00

22 lines
568 B
Bash
Executable file

#!/bin/sh
# This file is part of Firejail project
# Copyright (C) 2014-2022 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-apparmor
sudo dpkg -i firejail*.deb
echo "Firejail updated."
cd ..
rm -rf firejail