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: I7c3b4829ed7a05bb1e3d85128182293b1e08286b
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f631b7..ff6638b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -75,5 +75,5 @@
)
install (FILES ${SERVICE_FILES} DESTINATION /lib/systemd/system/)
-install (TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_SBINDIR})
-install (TARGETS button-handler DESTINATION ${CMAKE_INSTALL_SBINDIR})
+install (TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
+install (TARGETS button-handler DESTINATION ${CMAKE_INSTALL_BINDIR})
diff --git a/service_files/xyz.openbmc_project.Chassis.Buttons.service b/service_files/xyz.openbmc_project.Chassis.Buttons.service
index f05c00e..3a501af 100644
--- a/service_files/xyz.openbmc_project.Chassis.Buttons.service
+++ b/service_files/xyz.openbmc_project.Chassis.Buttons.service
@@ -4,7 +4,7 @@
[Service]
Restart=always
RestartSec=3
-ExecStart=/usr/sbin/buttons
+ExecStart=/usr/bin/buttons
SyslogIdentifier=buttons
Type=dbus
BusName=xyz.openbmc_project.Chassis.Buttons