From f16f63e1cd7923eca5d35d6ceb8ce2b18a7809db Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 1 May 2015 19:12:31 +0100 Subject: [PATCH] Systemd service files changes paths in openSUSE 13.x --- bootstrap-salt.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 9dc3403..c38959d 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -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