Repository navigation
Fix bootstrapping from git on Debian 8 by installing latest tornado via pip - #828
Conversation
|
|
||
| if [ "$_INSTALL_CLOUD" -eq $BS_TRUE ]; then | ||
| __check_pip_allowed "You need to allow pip based installations (-P) in order to install apache-libcloud" | ||
| __check_pip_allowed "You need to allow pip based installations (-P) in order to install requested 'apache-libcloud" |
There was a problem hiding this comment.
Forgot to close single quotes
|
@s0undt3ch You've got a sharp eye! :-) Fixed. |
|
@s0undt3ch I've also added a check for Debian specific initscripts and SystemD units present in the checkouted Git working directory. When PR saltstack/salt#32857 will be merged, these changes should eliminate the need to download the files from external sources or copy-and-edit RPM specific ones. Of course, old behavior is preserved as a fallback. |
fixes bootstrap in container (Docker, LXC)
|
@s0undt3ch Bump |
which alredy have been executed in `install_debian_8_deps`
|
Tested this PR in a fresh env, worked fine. +1 |
|
@siccrusher Thanks for testing! I've also added ability to get Ping @jfindlay |
|
This looks good to me, but I think a review from @s0undt3ch would still be good here. |
|
Go Go Jenkins! |
| # shellcheck disable=SC2086,SC2046,SC2144 | ||
| if [ -f /etc/rc$(runlevel | awk '{ print $2 }').d/S*${servicename} ]; then | ||
| # Check if the service is going to be started at any runlevel, fixes bootstrap in container (Docker, LXC) | ||
| if ls /etc/rc?.d/S*"${servicename}" >/dev/null 2>&1; then |
There was a problem hiding this comment.
Since I can't rely on the current Jenkins setup, did you passed these changes by shellcheck locally?
I assume they passed?
There was a problem hiding this comment.
@s0undt3ch Of course!
$ git status
On branch fix-debian8-git-tornado
Your branch is up-to-date with 'origin/fix-debian8-git-tornado'.
nothing to commit, working directory clean
$ shellcheck -V
ShellCheck - shell script analysis tool
version: 0.4.3
license: GNU General Public License, version 3
website: http://www.shellcheck.net
$ shellcheck bootstrap-salt.sh
$
What does this PR do?
Fixes git installation type on Debian Jessie. Also puts corrected
systemdservice units in the right place.What issues does this PR fix or reference?
#820
Previous Behavior
Salt services unable to start because of old version of
python-tornadodistribution package.New Behavior
Support installing latest
tornadomodule by enabling pip based installation (-P).