build: install into bin instead of sbin
Installs into bin instead of sbin per guidelines.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ie5783c3a631c09497cf5e27e51a31035f25c6208
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07d934a..dc88000 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -167,21 +167,21 @@
set (SERVICE_FILE_INSTALL_DIR /lib/systemd/system/)
if (NOT DISABLE_ADC)
- install (TARGETS adcsensor DESTINATION sbin)
+ install (TARGETS adcsensor DESTINATION bin)
install (FILES
${SERVICE_FILE_SRC_DIR}/xyz.openbmc_project.adcsensor.service
DESTINATION ${SERVICE_FILE_INSTALL_DIR})
endif ()
if (NOT DISABLE_CPU)
- install (TARGETS cpusensor DESTINATION sbin)
+ install (TARGETS cpusensor DESTINATION bin)
install (FILES
${SERVICE_FILE_SRC_DIR}/xyz.openbmc_project.cpusensor.service
DESTINATION ${SERVICE_FILE_INSTALL_DIR})
endif ()
if (NOT DISABLE_EXIT_AIR)
- install (TARGETS exitairtempsensor DESTINATION sbin)
+ install (TARGETS exitairtempsensor DESTINATION bin)
install (
FILES ${SERVICE_FILE_SRC_DIR}/xyz.openbmc_project.exitairsensor.service
DESTINATION ${SERVICE_FILE_INSTALL_DIR}
@@ -189,14 +189,14 @@
endif ()
if (NOT DISABLE_FAN)
- install (TARGETS fansensor DESTINATION sbin)
+ install (TARGETS fansensor DESTINATION bin)
install (FILES
${SERVICE_FILE_SRC_DIR}/xyz.openbmc_project.fansensor.service
DESTINATION ${SERVICE_FILE_INSTALL_DIR})
endif ()
if (NOT DISABLE_HWMON_TEMP)
- install (TARGETS hwmontempsensor DESTINATION sbin)
+ install (TARGETS hwmontempsensor DESTINATION bin)
install (
FILES
${SERVICE_FILE_SRC_DIR}/xyz.openbmc_project.hwmontempsensor.service
@@ -205,7 +205,7 @@
endif ()
if (NOT DISABLE_INTRUSION)
- install (TARGETS intrusionsensor DESTINATION sbin)
+ install (TARGETS intrusionsensor DESTINATION bin)
install (
FILES
${SERVICE_FILE_SRC_DIR}/xyz.openbmc_project.intrusionsensor.service
@@ -214,12 +214,12 @@
endif ()
if (NOT DISABLE_IPMB)
- install (TARGETS ipmbsensor DESTINATION sbin)
+ install (TARGETS ipmbsensor DESTINATION bin)
install (FILES
${SERVICE_FILE_SRC_DIR}/xyz.openbmc_project.ipmbsensor.service
DESTINATION ${SERVICE_FILE_INSTALL_DIR})
endif ()
if (NOT DISABLE_PSU)
- install (TARGETS psusensor DESTINATION sbin)
+ install (TARGETS psusensor DESTINATION bin)
endif ()
diff --git a/service_files/xyz.openbmc_project.adcsensor.service b/service_files/xyz.openbmc_project.adcsensor.service
index 9f3dddb..666ff16 100644
--- a/service_files/xyz.openbmc_project.adcsensor.service
+++ b/service_files/xyz.openbmc_project.adcsensor.service
@@ -5,7 +5,7 @@
[Service]
Restart=always
RestartSec=5
-ExecStart=/usr/sbin/adcsensor
+ExecStart=/usr/bin/adcsensor
[Install]
WantedBy=multi-user.target
diff --git a/service_files/xyz.openbmc_project.cpusensor.service b/service_files/xyz.openbmc_project.cpusensor.service
index 84de476..c51315d 100644
--- a/service_files/xyz.openbmc_project.cpusensor.service
+++ b/service_files/xyz.openbmc_project.cpusensor.service
@@ -6,7 +6,7 @@
Restart=always
RestartSec=5
StartLimitBurst=10
-ExecStart=/usr/sbin/cpusensor
+ExecStart=/usr/bin/cpusensor
[Install]
WantedBy=multi-user.target
diff --git a/service_files/xyz.openbmc_project.exitairsensor.service b/service_files/xyz.openbmc_project.exitairsensor.service
index e0b2a0d..ca7dbb0 100644
--- a/service_files/xyz.openbmc_project.exitairsensor.service
+++ b/service_files/xyz.openbmc_project.exitairsensor.service
@@ -5,7 +5,7 @@
[Service]
Restart=always
RestartSec=5
-ExecStart=/usr/sbin/exitairtempsensor
+ExecStart=/usr/bin/exitairtempsensor
[Install]
WantedBy=multi-user.target
diff --git a/service_files/xyz.openbmc_project.fansensor.service b/service_files/xyz.openbmc_project.fansensor.service
index b52aea2..8e24781 100644
--- a/service_files/xyz.openbmc_project.fansensor.service
+++ b/service_files/xyz.openbmc_project.fansensor.service
@@ -5,7 +5,7 @@
[Service]
Restart=always
RestartSec=5
-ExecStart=/usr/sbin/fansensor
+ExecStart=/usr/bin/fansensor
[Install]
WantedBy=multi-user.target
diff --git a/service_files/xyz.openbmc_project.hwmontempsensor.service b/service_files/xyz.openbmc_project.hwmontempsensor.service
index af5cfff..4a75a6e 100644
--- a/service_files/xyz.openbmc_project.hwmontempsensor.service
+++ b/service_files/xyz.openbmc_project.hwmontempsensor.service
@@ -5,7 +5,7 @@
[Service]
Restart=always
RestartSec=5
-ExecStart=/usr/sbin/hwmontempsensor
+ExecStart=/usr/bin/hwmontempsensor
[Install]
WantedBy=multi-user.target
diff --git a/service_files/xyz.openbmc_project.ipmbsensor.service b/service_files/xyz.openbmc_project.ipmbsensor.service
index de50edd..af7d6f4 100644
--- a/service_files/xyz.openbmc_project.ipmbsensor.service
+++ b/service_files/xyz.openbmc_project.ipmbsensor.service
@@ -5,7 +5,7 @@
[Service]
Restart=always
RestartSec=5
-ExecStart=/usr/sbin/ipmbsensor
+ExecStart=/usr/bin/ipmbsensor
[Install]
WantedBy=multi-user.target