aboutsummaryrefslogtreecommitdiff
path: root/share/hoarder/autocanary/unix/linux/debian/install
blob: bb5c596b0e1d68fbd6e755e9dfa329072553e649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env sh
#
# Install AutoCanary
#
# https://github.com/firstlookmedia/autocanary
# https://www.zdnet.com/article/autocanary-security-app-warrant-canary-first-look-intercept/
# https://canarywatch.org

# Parameters
SHARE="$1"
LIB="$2"

# Include basic functions
. $LIB/trashman/functions || exit 1
. $LIB/trashman/debian    || exit 1

# Requirements
trashman_apt_install build-essential fakeroot python3-all python3-stdeb python3-pyqt5 python3-feedparser gnupg2

# Go to working folder
mkdir -p $HOME/.local/share
cd $HOME/.local/share

# Get the code
if [ -d "autocanary" ]; then
  cd autocanary && git pull || exit 1
else
  git clone https://github.com/firstlookmedia/autocanary && cd autocanary || exit 1
fi

# Create symlink to scripts
mkdir -p $HOME/.local/bin
cd $HOME/.local/bin
#ln -sf $HOME/.local/share/autocanary/dev_scripts/autocanary
echo "cd $HOME/.local/share/autocanary/dev_scripts && ./autocanary" > autocanary
chmod +x autocanary