Skip to content

Commit

Permalink
fix for rpm upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
64bit committed Jul 9, 2023
1 parent 1309d11 commit 341f0ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions upvpn-packages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ set -euo pipefail
# Stop UI
pkill -x "upvpn" || true
is_number_re='^[0-9]+$'
# Check if we're running during an upgrade step on Fedora
# https://fedoraproject.org/wiki/Packaging:Scriptlets#Syntax
if [[ "$1" =~ $is_number_re ]] && [ $1 -gt 0 ]; then
exit 0;
fi
if [[ "$1" == "upgrade" ]]; then
exit 0;
fi
systemctl stop upvpn-daemon.service || true
systemctl disable upvpn-daemon.service || true
'''
Expand Down

0 comments on commit 341f0ca

Please sign in to comment.