Systemd service files changes paths in openSUSE 13.x

This commit is contained in:
Pedro Algarvio 2015-05-01 19:12:31 +01:00
parent 7430a7e9aa
commit f16f63e1cd

View file

@ -4400,7 +4400,11 @@ install_opensuse_git_post() {
[ $fname = "syndic" ] && [ "$_INSTALL_SYNDIC" -eq $BS_FALSE ] && continue
if [ -f /bin/systemctl ]; then
copyfile "${__SALT_GIT_CHECKOUT_DIR}/pkg/salt-${fname}.service" "/lib/systemd/system/salt-${fname}.service"
if [ "${DISTRO_MAJOR_VERSION}" -gt 12 ]; then
copyfile "${__SALT_GIT_CHECKOUT_DIR}/pkg/salt-${fname}.service" "/usr/lib/systemd/system/salt-${fname}.service"
else
copyfile "${__SALT_GIT_CHECKOUT_DIR}/pkg/salt-${fname}.service" "/lib/systemd/system/salt-${fname}.service"
fi
continue
fi