blob: 326d49643625257ea2d753676b5a85146bfe3811 (
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
46
47
48
49
50
|
post_install() {
setcap CAP_NET_ADMIN=+ei /usr/bin/warp-svc
echo ""
echo "==>"
echo "==> CAP_NET_ADMIN set on /usr/bin/warp-svc"
echo "==>"
echo "==> You need to start the WARP service before using it. To start once:"
echo "==>"
echo "==> sudo systemctl start warp-svc.service"
echo "==>"
echo "==>"
echo "==> To start right now and automatically after startup:"
echo "==>"
echo "==> sudo systemctl enable --now warp-svc.service"
echo "==>"
echo "==>"
echo "==> To also enable the taskbar now and automatically after startup:"
echo "==>"
echo "==> systemctl --user enable --now warp-taskbar"
echo "==>"
echo ""
}
post_upgrade() {
setcap CAP_NET_ADMIN=+ei /usr/bin/warp-svc
echo ""
echo "==>"
echo "==> CAP_NET_ADMIN set on /usr/bin/warp-svc"
echo "==>"
echo "==> If you are currently running the WARP service, you may need to restart it "
echo "==> to finalize the upgrade:"
echo "==>"
echo "==> sudo systemctl restart warp-svc.service"
echo "==>"
echo "==> If you are upgrading from an older version of cloudflare-warp-bin, not that you are now able to enable the taskbar as follows: "
echo "==>"
echo "==> systemctl --user enable --now warp-taskbar"
echo "==>"
echo ""
}
post_remove() {
echo ""
echo "==>"
echo "==> If you have warp service set to run at startup, you should remove it by using the command below:"
echo "==>"
echo "==> sudo systemctl disable warp-svc.service"
echo "==>"
echo ""
}
|