Initial commit

This commit is contained in:
2022-01-22 15:10:39 +01:00
parent dbd322c36f
commit 133a1ce946
3 changed files with 50 additions and 32 deletions
+7 -9
View File
@@ -1,9 +1,10 @@
pre_install() {
end=$((SECONDS+10))
while :
do
if [ -z "$(ps -eo args | grep WindscribeEngine | grep -v grep)" ]; then
echo "No WindscribeEngine running"
break
fi
@@ -13,6 +14,9 @@ pre_install() {
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
@@ -27,16 +31,15 @@ pre_install() {
}
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
systemctl enable windscribe-helper
systemctl start windscribe-helper
update-desktop-database -q
}
pre_upgrade() {
set -e
systemctl stop windscribe-helper
systemctl disable windscribe-helper
pre_install
}
post_upgrade() {
@@ -47,8 +50,3 @@ pre_remove() {
systemctl stop windscribe-helper
systemctl disable windscribe-helper
}
post_remove() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}