Lines 236-252
Link Here
|
236 |
DESTINATION ${RSERVER_UPSTART_DIR}) |
236 |
DESTINATION ${RSERVER_UPSTART_DIR}) |
237 |
|
237 |
|
238 |
# install configured systemd profile |
238 |
# install configured systemd profile |
239 |
set(RSERVER_SYSTEMD_DIR "extras/systemd") |
239 |
set(RSERVER_SYSTEMD_DIR "lib/systemd/system") |
240 |
set(RSERVER_SYSTEMD_PROFILE "${RSERVER_SYSTEMD_DIR}/rstudio-server.service") |
240 |
set(RSERVER_SYSTEMD_PROFILE "${RSERVER_SYSTEMD_DIR}/rstudio-server.service") |
241 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${RSERVER_SYSTEMD_PROFILE}.in |
241 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${RSERVER_SYSTEMD_PROFILE}.in |
242 |
${CMAKE_CURRENT_BINARY_DIR}/${RSERVER_SYSTEMD_PROFILE}) |
242 |
${CMAKE_CURRENT_BINARY_DIR}/${RSERVER_SYSTEMD_PROFILE}) |
243 |
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${RSERVER_SYSTEMD_PROFILE} |
243 |
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${RSERVER_SYSTEMD_PROFILE} |
244 |
DESTINATION ${RSERVER_SYSTEMD_DIR}) |
244 |
DESTINATION ${RSERVER_SYSTEMD_DIR}) |
245 |
set(RSERVER_SYSTEMD_PROFILE_REDHAT "${RSERVER_SYSTEMD_DIR}/rstudio-server.redhat.service") |
|
|
246 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${RSERVER_SYSTEMD_PROFILE_REDHAT}.in |
247 |
${CMAKE_CURRENT_BINARY_DIR}/${RSERVER_SYSTEMD_PROFILE_REDHAT}) |
248 |
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${RSERVER_SYSTEMD_PROFILE_REDHAT} |
249 |
DESTINATION ${RSERVER_SYSTEMD_DIR}) |
250 |
|
245 |
|
251 |
elseif(APPLE) |
246 |
elseif(APPLE) |
252 |
|
247 |
|