blob: 0f63270fcb55422ce0777e8b75724dc911da987d (
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
|
post_install() {
# SUID chrome-sandbox for Electron 5+
chmod 4755 '/opt/PureVPN/chrome-sandbox' || true
echo "-------------------------------"
echo ""
echo ""
echo "When you open PureVPN for the first time it will say \"apt: command not found\"."
echo "Just click \"Quit\" and open it again. The error should go away."
echo ""
echo ""
echo "-------------------------------"
}
post_upgrade() {
# SUID chrome-sandbox for Electron 5+
chmod 4755 '/opt/PureVPN/chrome-sandbox' || true
echo "-------------------------------"
echo ""
echo ""
echo "After updating PureVPN it might say again \"apt: command not found\"."
echo "Just click \"Quit\" and open it again. The error should go away."
echo ""
echo ""
echo "-------------------------------"
}
post_remove() {
# Delete service if exists
systemctl stop pured > /dev/null 2>&1 || true
systemctl disable pured > /dev/null 2>&1 || true
rm /etc/systemd/system/pured.service > /dev/null 2>&1 || true
systemctl daemon-reload
}
|