]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: install python scripts into /usr/sbin even if DESTDIR is empty
authorKefu Chai <kchai@redhat.com>
Sun, 20 Dec 2020 05:16:17 +0000 (13:16 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 20 Dec 2020 17:26:46 +0000 (01:26 +0800)
commit6cdf25b4ab4125764f98df9de00d9cf7512c6c32
tree721398e761e96db4bb97bad35a5e7ecf5d328d82
parente59693fd96c34672c4c743514bd173fc70a3a544
cmake: install python scripts into /usr/sbin even if DESTDIR is empty

it's reported that on Alphine, "make install" installs
`ceph-volume-systemd` into `/usr/bin` instead of `/usr/sbin`, and this
breaks `systemd/ceph-volume@.service`. so in this change, we always
install this script into `/usr/sbin`, even if `DESTDIR` is not defined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/Distutils.cmake