From 155cfc5574025526bc7b5d4927362c52e7814798 Mon Sep 17 00:00:00 2001 From: Alexey Dmitriev Date: Wed, 14 Dec 2016 18:04:02 +0100 Subject: [PATCH] fix systemctl path --- bootstrap-salt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index ce8e55d..f03f3bd 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -3627,7 +3627,7 @@ install_centos_stable_post() { [ $fname = "syndic" ] && [ "$_INSTALL_SYNDIC" -eq $BS_FALSE ] && continue if [ -f /bin/systemctl ]; then - /usr/systemctl is-enabled salt-${fname}.service > /dev/null 2>&1 || ( + /bin/systemctl is-enabled salt-${fname}.service > /dev/null 2>&1 || ( /bin/systemctl preset salt-${fname}.service > /dev/null 2>&1 && /bin/systemctl enable salt-${fname}.service > /dev/null 2>&1 )