summaryrefslogtreecommitdiff
path: root/pages/install/linux/_via_packages.html.haml
blob: 340a19e98155f1c19a72bca6249bc947b3fb19bf (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
37
38
39
40
41
42
43
44
45
- if @locals[:os] == 'debian'

  %p.b
    To install

  %pre
    :preserve
      sudo -s
      echo "deb http://deb.bitmask.net/debian #{@locals[:distro]} main" > /etc/apt/sources.list.d/bitmask.list
      wget -O- https://dl.bitmask.net/apt.key | apt-key add -
      apt-get update
      apt-get install bitmask leap-keyring

  %p.b
    To remove

  %pre
    :preserve
      sudo -s
      apt-get remove bitmask leap-keyring
      apt-key del 0x1E34A1828E207901
      rm /etc/apt/sources.list.d/bitmask.list

- else

  %p.b
    To install

  %pre
    :preserve
      sudo -s
      add-apt-repository "deb http://deb.bitmask.net/debian #{@locals[:distro]} main"
      wget -O- https://dl.bitmask.net/apt.key | apt-key add -
      apt-get update
      apt-get install bitmask leap-keyring

  %p.b
    To remove

  %pre
    :preserve
      sudo -s
      apt-get remove bitmask leap-keyring
      apt-key del 0x1E34A1828E207901
      add-apt-repository --remove "deb http://deb.bitmask.net/debian #{@locals[:distro]} main"