diff options
Diffstat (limited to 'cmake/PostInstall.in')
| -rw-r--r-- | cmake/PostInstall.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/PostInstall.in b/cmake/PostInstall.in index 4e9d5e3..eed699c 100644 --- a/cmake/PostInstall.in +++ b/cmake/PostInstall.in @@ -9,6 +9,7 @@ if [ ! -d "$mrzcpd_bin_path" ]; then mkdir -p "$mrzcpd_bin_path" fi +if [ $1 -eq 1 ]; then command="update-alternatives --altdir @CMAKE_INSTALL_PREFIX@/altdir \ --install \ @MR_ALTERNATIVE_BINDIR@/mrzcpd \ @@ -88,6 +89,7 @@ command="update-alternatives --altdir @CMAKE_INSTALL_PREFIX@/altdir \ mrzcpd.service \ @CMAKE_INSTALL_PREFIX@/@MR_INSTALL_SYSTEM@/mrzcpd.service " eval $command +fi %systemd_post mrenv.service mrzcpd.service mrtunnat.service mrzcpd_hwdb_setup.service mrzcpd_hugepages_setup.service /sbin/ldconfig |
