diff options
author | 2017-01-17 10:26:37 -0600 | |
---|---|---|
committer | 2017-01-17 10:26:37 -0600 | |
commit | b81376f197dc94ca9bc13f08051d485abe0ff7d0 (patch) | |
tree | 0afc8dbf7a78ee480a2f982a728a6c6c0801a668 /contrib/update_src.sh | |
parent | fix ASSERT_PERMS_FD macro (diff) | |
download | firejail-b81376f197dc94ca9bc13f08051d485abe0ff7d0.tar.gz firejail-b81376f197dc94ca9bc13f08051d485abe0ff7d0.tar.zst firejail-b81376f197dc94ca9bc13f08051d485abe0ff7d0.zip |
added update scripts
Diffstat (limited to 'contrib/update_src.sh')
-rwxr-xr-x | contrib/update_src.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/update_src.sh b/contrib/update_src.sh new file mode 100755 index 000000000..77f7be16e --- /dev/null +++ b/contrib/update_src.sh | |||
@@ -0,0 +1,17 @@ | |||
1 | #!/bin/bash | ||
2 | # Purpose: Fetch, compile, and install firejail from GitHub source. Package-manager agnostic. | ||
3 | |||
4 | if [ $EUID != 0 ]; then | ||
5 | sudo "$0" "$@" | ||
6 | exit $? | ||
7 | fi | ||
8 | |||
9 | git clone https://www.github.com/netblue30/firejail.git | ||
10 | cd firejail | ||
11 | ./configure --prefix=/usr | ||
12 | make | ||
13 | make install-strip | ||
14 | echo "Firejail was updated!" | ||
15 | sleep 3 | ||
16 | cd .. | ||
17 | rm -rf firejail | ||