summarylogtreecommitdiffstats
path: root/tailscale.install
blob: 2d72ba28e1ddfb13021c230fbf33bf6bd0c1cebf (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
# -*- mode: shell-script -*-

post_install() {
    usr/bin/systemctl daemon-reload
    usr/bin/systemctl enable tailscaled.service
    usr/bin/systemctl start tailscaled.service

    echo -e "\n\e[1m Tailscale $1\e[0m\n"
    cat <<EOF
To start using Tailscale, log in with:

    sudo tailscale up

EOF
}

post_upgrade() {
    usr/bin/systemctl daemon-reload
    usr/bin/systemctl restart tailscaled.service
}

pre_remove() {
    usr/bin/systemctl stop tailscaled.service
    usr/bin/systemctl disable tailscaled.service
}