mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Update install_ubuntu_git and install_debian_git to account for different locations for the systemd service files.
This commit is contained in:
parent
db46fb94e4
commit
4358274986
1 changed files with 18 additions and 2 deletions
|
@ -3330,7 +3330,15 @@ install_ubuntu_git() {
|
|||
_POST_NEON_PIP_INSTALL_ARGS=""
|
||||
__install_salt_from_repo_post_neon "${_PY_EXE}" || return 1
|
||||
cd "${_SALT_GIT_CHECKOUT_DIR}" || return 1
|
||||
sed -i 's:/usr/bin:/usr/local/bin:g' pkg/*.service
|
||||
|
||||
# Account for new path for services files in later releases
|
||||
if [ -d "pkg/common" ]; then
|
||||
_SERVICE_DIR="pkg/common"
|
||||
else
|
||||
_SERVICE_DIR="pkg"
|
||||
fi
|
||||
|
||||
sed -i 's:/usr/bin:/usr/local/bin:g' ${_SERVICE_DIR}/*.service
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
@ -3962,7 +3970,15 @@ install_debian_git() {
|
|||
_POST_NEON_PIP_INSTALL_ARGS=""
|
||||
__install_salt_from_repo_post_neon "${_PY_EXE}" || return 1
|
||||
cd "${_SALT_GIT_CHECKOUT_DIR}" || return 1
|
||||
sed -i 's:/usr/bin:/usr/local/bin:g' pkg/*.service
|
||||
|
||||
# Account for new path for services files in later releases
|
||||
if [ -d "pkg/common" ]; then
|
||||
_SERVICE_DIR="pkg/common"
|
||||
else
|
||||
_SERVICE_DIR="pkg"
|
||||
fi
|
||||
|
||||
sed -i 's:/usr/bin:/usr/local/bin:g' ${_SERVICE_DIR}/*.service
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue