diff options
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/PostInstall.in | 2 | ||||
| -rw-r--r-- | cmake/PostUninstall.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmake/PostInstall.in b/cmake/PostInstall.in index 009825f..eed699c 100644 --- a/cmake/PostInstall.in +++ b/cmake/PostInstall.in @@ -9,7 +9,7 @@ if [ ! -d "$mrzcpd_bin_path" ]; then mkdir -p "$mrzcpd_bin_path" fi -if [ $1 -gt 1 ]; then +if [ $1 -eq 1 ]; then command="update-alternatives --altdir @CMAKE_INSTALL_PREFIX@/altdir \ --install \ @MR_ALTERNATIVE_BINDIR@/mrzcpd \ diff --git a/cmake/PostUninstall.in b/cmake/PostUninstall.in index 8c94d9f..4f0e9f0 100644 --- a/cmake/PostUninstall.in +++ b/cmake/PostUninstall.in @@ -1,7 +1,7 @@ %systemd_postun_with_restart mrenv.service mrzcpd.service mrtunnat.service /sbin/ldconfig -if [ $ 1 -gt 0 ]; then +if [ $ 1 -eq 0 ]; then command="update-alternatives --remove mrzcpd @CMAKE_INSTALL_PREFIX@/@MR_INSTALL_BINDIR@/mrzcpd --altdir @CMAKE_INSTALL_PREFIX@/altdir" eval $command fi |
