diff options
author | Nikolas Spiridakis | 2023-02-14 02:55:28 +0200 |
---|---|---|
committer | Nikolas Spiridakis | 2023-02-14 02:55:28 +0200 |
commit | abc231cb220d8a5cb78d69f830163b0bd5e2bd53 (patch) | |
tree | 94c06d928427f9a40ba1bc7767f4baf531f0924e /purevpn-gui.install | |
parent | ef4dd69de407a8eeefaca3bf0cd8ec46c8896adb (diff) | |
download | aur-abc231cb220d8a5cb78d69f830163b0bd5e2bd53.tar.gz |
Add PATH to /usr/bin shell script instead of the desktop file
Diffstat (limited to 'purevpn-gui.install')
-rw-r--r-- | purevpn-gui.install | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/purevpn-gui.install b/purevpn-gui.install index 44503f4dbf88..bcf110f4b7eb 100644 --- a/purevpn-gui.install +++ b/purevpn-gui.install @@ -1,6 +1,4 @@ post_install() { - # Link to the binary - ln -sf '/opt/PureVPN/purevpn' '/usr/bin/purevpn' # SUID chrome-sandbox for Electron 5+ chmod 4755 '/opt/PureVPN/chrome-sandbox' || true @@ -21,13 +19,10 @@ post_upgrade() { } post_remove() { - # Delete the link to the binary - rm -f '/usr/bin/purevpn' - # Delete service if exists - systemctl stop pured || true &> /dev/null - systemctl disable pured || true &> /dev/null - rm /etc/systemd/system/pured.service || true &> /dev/null + 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 } |