Resolve "Reorganize `/etc` and `/share` folder"

Closes #137 (closed)

Merge request reports

Loading
+0 −2
Changes for etc/CMakeLists.txt: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -22,8 +22,6 @@
# SPDX-License-Identifier: GPL-3.0-or-later                                    #
################################################################################

add_subdirectory(deploy_scripts)

configure_file(scord.conf.in scord.conf)
configure_file(scord-ctl.conf.in scord-ctl.conf @ONLY)

+3 −3
Changes for etc/scord-ctl.conf.in: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ config:
        environment:
          VAR0: value0
          VAR1: value1
        # The command that scord-ctl will use to start an adhoc instance of
        # The command that `scord-ctl` will use to start an adhoc instance of
        # this type. The following variables are supported that will be
        # automatically replaced by scord-ctl if found between curly braces:
        #  * ADHOC_NODES: A comma separated list of valid job hostnames that
@@ -24,7 +24,7 @@ config:
        #    `working_directory` and automatically removed after the adhoc
        #    instance has been shut down.
        #  * ADHOC_ID: - A unique ID for the adhoc instance.
        command: @CMAKE_INSTALL_FULL_SYSCONFDIR@/@PROJECT_NAME@/gekkofs.sh
        command: @CMAKE_INSTALL_FULL_DATADIR@/@PROJECT_NAME@/adhoc_services.d/gekkofs.sh
                    start
                    --hosts {ADHOC_NODES}
                    --workdir {ADHOC_DIRECTORY}
@@ -32,7 +32,7 @@ config:
                    --mountdir {ADHOC_DIRECTORY}/mnt
      shutdown:
        environment:
        command: @CMAKE_INSTALL_FULL_SYSCONFDIR@/@PROJECT_NAME@/gekkofs.sh
        command: @CMAKE_INSTALL_FULL_DATADIR@/@PROJECT_NAME@/adhoc_services.d/gekkofs.sh
                    stop
                    --workdir {ADHOC_DIRECTORY}

+5 −2
Changes for plugins/adhoc_services.d/CMakeLists.txt: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -24,10 +24,13 @@

list(APPEND ADHOC_SCRIPTS "${CMAKE_CURRENT_SOURCE_DIR}/gekkofs.sh")

# install adhoc scripts to `<sysconfdir>/scord` (normally /etc/scord)
# install adhoc scripts to `<datadir>/scord/adhoc_services.d/`
# (normally /usr/share/scord/adhoc_services.d/)
get_filename_component(INSTALL_DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} NAME)

install(
  FILES ${ADHOC_SCRIPTS}
  DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME}
  DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/${INSTALL_DESTINATION}
  PERMISSIONS
    OWNER_EXECUTE OWNER_WRITE OWNER_READ
    GROUP_EXECUTE GROUP_READ
+0 −0

File moved.

+3 −1
Changes for plugins/slurm/CMakeLists.txt: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -63,11 +63,13 @@ configure_file(scord_common.sh.in scord_common.sh @ONLY)
configure_file(scord_prolog.sh.in scord_prolog.sh @ONLY)
configure_file(scord_epilog.sh.in scord_epilog.sh @ONLY)

get_filename_component(INSTALL_DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} NAME)

install(
  FILES ${CMAKE_CURRENT_BINARY_DIR}/scord_common.sh
        ${CMAKE_CURRENT_BINARY_DIR}/scord_prolog.sh
        ${CMAKE_CURRENT_BINARY_DIR}/scord_epilog.sh
  DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/slurm
  DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/${INSTALL_DESTINATION}
  PERMISSIONS
    OWNER_EXECUTE OWNER_WRITE OWNER_READ
    GROUP_EXECUTE GROUP_READ
Loading
Loading