diff options
author | netblue30 <netblue30@yahoo.com> | 2017-02-04 11:57:47 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-02-04 11:57:47 -0500 |
commit | e46dd3e952af021c76d7f7b4df8f6da48fed6bed (patch) | |
tree | ea3c5e9767bc17d8105a9e0056292de9b9c1fd2c /src/fgit | |
parent | Merge pull request #1053 from Fred-Barclay/update_scripts (diff) | |
download | firejail-e46dd3e952af021c76d7f7b4df8f6da48fed6bed.tar.gz firejail-e46dd3e952af021c76d7f7b4df8f6da48fed6bed.tar.zst firejail-e46dd3e952af021c76d7f7b4df8f6da48fed6bed.zip |
git-install
Diffstat (limited to 'src/fgit')
-rwxr-xr-x | src/fgit/fgit-install.sh | 20 | ||||
-rw-r--r-- | src/fgit/fgit-uninstall.sh | 16 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/fgit/fgit-install.sh b/src/fgit/fgit-install.sh new file mode 100755 index 000000000..9e43559a1 --- /dev/null +++ b/src/fgit/fgit-install.sh | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/bin/sh | ||
2 | # Purpose: Fetch, compile, and install firejail from GitHub source. Package-manager agnostic. | ||
3 | # | ||
4 | |||
5 | set -e # exit immediately if one of the commands fails | ||
6 | cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp | ||
7 | git clone --depth=1 https://www.github.com/netblue30/firejail.git | ||
8 | cd firejail | ||
9 | ./configure | ||
10 | make | ||
11 | sudo make install-strip | ||
12 | echo "**********************************************************************" | ||
13 | echo "Mainline git Firejail version was installed in /usr/local." | ||
14 | echo "If you want to remove it, run" | ||
15 | echo | ||
16 | echo " firejail --git-uninstall" | ||
17 | echo | ||
18 | echo "**********************************************************************" | ||
19 | cd .. | ||
20 | rm -rf firejail | ||
diff --git a/src/fgit/fgit-uninstall.sh b/src/fgit/fgit-uninstall.sh new file mode 100644 index 000000000..9a370546d --- /dev/null +++ b/src/fgit/fgit-uninstall.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | # Purpose: Fetch, compile, and install firejail from GitHub source. Package-manager agnostic. | ||
3 | # | ||
4 | |||
5 | set -e # exit immediately if one of the commands fails | ||
6 | cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp | ||
7 | git clone --depth=1 https://www.github.com/netblue30/firejail.git | ||
8 | cd firejail | ||
9 | ./configure | ||
10 | sudo make uninstall | ||
11 | echo "**********************************************************************" | ||
12 | echo "Firejail mainline git version uninstalled from /usr/local" | ||
13 | echo | ||
14 | echo "**********************************************************************" | ||
15 | cd .. | ||
16 | rm -rf firejail | ||