aboutsummaryrefslogtreecommitdiffstats
path: root/src/fgit/fgit-install.sh
blob: 9e43559a1d23eea3934be4b988dd844a4d72d5d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# Purpose: Fetch, compile, and install firejail from GitHub source. Package-manager agnostic.
#

set -e		# exit immediately if one of the commands fails
cd /tmp		# by the time we start this, we should have a tmpfs mounted on top of /tmp
git clone --depth=1 https://www.github.com/netblue30/firejail.git
cd firejail
./configure
make
sudo make install-strip
echo "**********************************************************************"
echo "Mainline git Firejail version was installed in /usr/local."
echo "If you want to remove it, run"
echo
echo "           firejail --git-uninstall"
echo
echo "**********************************************************************"
cd ..
rm -rf firejail