diff --git a/CMakeLists.txt b/CMakeLists.txt index c10502f6..9fb9c73e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -347,10 +347,7 @@ if(NP2SRV_HAVE_SYSTEMD) install(FILES ${PROJECT_BINARY_DIR}/netopeer2-server.service DESTINATION ${SYSTEMD_UNIT_DIR}) endif() -# copy pam service to /etc/pam.d -if(EXISTS "/etc/pam.d") - install(FILES "${CMAKE_SOURCE_DIR}/pam/netopeer2.conf" DESTINATION "/etc/pam.d") -endif() +install(FILES "${CMAKE_SOURCE_DIR}/pam/netopeer2.conf" DESTINATION "${CMAKE_INSTALL_SYSCONFDIR}/pam.d") if(SYSREPO_SETUP) install(CODE "