summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Núñez Yuvé2022-03-03 03:32:04 -0300
committerGabriel Núñez Yuvé2022-03-03 03:32:04 -0300
commit8df283f290c021c1edf6b0617ed360f999c7c74f (patch)
tree7aa7f54e81c30dd2ed01b3f4c21d53331c0f906e
parentaecc6e231e6500a9a787250ab584480b34798739 (diff)
downloadaur-8df283f290c021c1edf6b0617ed360f999c7c74f.tar.gz
bye
-rw-r--r--windscribe-bin.install52
1 files changed, 0 insertions, 52 deletions
diff --git a/windscribe-bin.install b/windscribe-bin.install
deleted file mode 100644
index 252f0fa51bb3..000000000000
--- a/windscribe-bin.install
+++ /dev/null
@@ -1,52 +0,0 @@
-pre_install() {
-
- end=$((SECONDS+10))
-
- while :
- do
- if [ -z "$(ps -eo args | grep WindscribeEngine | grep -v grep)" ]; then
- break
- fi
-
- if [ $SECONDS -gt $end ]; then
- echo 'Error during Windscribe installation. WindscribeEngine is running. Please re-launch Windscribe. And try to update again.'
- exit 1
- fi
- done
-
- systemctl stop windscribe-helper > /dev/null 2>&1
- systemctl disable windscribe-helper > /dev/null 2>&1
-
- # Stop and disable firewalld service if it is active, otherwise it will conflict with iptables on OS reboot
- # Relevant for Fedora distributions
- systemctl is-active --quiet firewalld
- if [ $? -eq 0 ]
- then
- echo "Firewalld service is running. It will be stopped and disabled to avoid conflicts with the Windscribe iptables firewall."
- sudo systemctl stop firewalld
- sudo systemctl disable firewalld
- fi
-
- echo "Finish pre-install script"
-}
-
-post_install() {
- systemctl enable windscribe-helper
- systemctl start windscribe-helper
-
-}
-
-pre_upgrade() {
- set -e
- systemctl stop windscribe-helper
- systemctl disable windscribe-helper
-}
-
-post_upgrade() {
- post_install
-}
-
-pre_remove() {
- systemctl stop windscribe-helper
- systemctl disable windscribe-helper
-}