Skip to content

Commit

Permalink
fix(rpm): avoid unintended execution of uninstall code
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaeu committed Nov 27, 2023
1 parent ef99b46 commit 3d968d4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .rpm-packaging/ors-selinux.spec
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,7 @@ restorecon -vvRF ${ORS_HOME}

%postun

semanage fcontext -a -t unlabeled_t ${ORS_HOME}
restorecon -vvRF ${ORS_HOME}
if [ "$1" = "0" ]; then
semanage fcontext -a -t unlabeled_t ${ORS_HOME}
restorecon -vvRF ${ORS_HOME}
fi
2 changes: 1 addition & 1 deletion ors-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<relativePath>../pom.xml</relativePath>
<artifactId>openrouteservice</artifactId>
<groupId>org.heigit.ors</groupId>
<version>7.2.0</version>
<version>7.2.1-SNAPSHOT-1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion ors-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<relativePath>../pom.xml</relativePath>
<artifactId>openrouteservice</artifactId>
<groupId>org.heigit.ors</groupId>
<version>7.2.0</version>
<version>7.2.1-SNAPSHOT-1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.heigit.ors</groupId>
<artifactId>openrouteservice</artifactId>
<version>7.2.0</version>
<version>7.2.1-SNAPSHOT-1</version>
<packaging>pom</packaging>
<name>openrouteservice</name>
<url>https://openrouteservice.org</url>
Expand Down

0 comments on commit 3d968d4

Please sign in to comment.