Merge "Add quotes around $DISTRO"

This commit is contained in:
Jenkins 2013-12-19 07:52:43 +00:00 committed by Gerrit Code Review
commit 4bfbadbf3f
6 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ fi
DISTRO=`lsb_release -si` || true
if [[ "Fedora" = $DISTRO ]]; then
if [[ "Fedora" = "$DISTRO" ]]; then
# Check if the iptables service is active
if systemctl is-active iptables.service ; then

View File

@ -9,7 +9,7 @@ fi
DISTRO=`lsb_release -si` || true
if [[ "Fedora" = $DISTRO ]]; then
if [[ "Fedora" = "$DISTRO" ]]; then
# Check if the iptables service is active
if systemctl is-active iptables.service ; then

View File

@ -9,7 +9,7 @@ fi
DISTRO=`lsb_release -si` || true
if [[ "Fedora" = $DISTRO ]]; then
if [[ "Fedora" = "$DISTRO" ]]; then
# Check if the iptables service is active
if systemctl is-active iptables.service ; then

View File

@ -33,7 +33,7 @@ if [ -e $DONE_FILE ] ; then
fi
# MySQL may be stopped pre-configuration, so try to start it
if [ -d /etc/init ] && [ $DISTRO = "Ubuntu" ] ; then
if [ -d /etc/init ] && [ "$DISTRO" = "Ubuntu" ] ; then
# Upstart: During initial boot, mysql will start in parallel with os-refresh-config
# wait-for-state is a job that allows blocking until a particular state is reached.
start wait-for-state WAIT_FOR=mysql WAITER=$(basename $0) WAIT_FOREVER=Y TARGET_GOAL=start WAIT_STATE=running

View File

@ -3,7 +3,7 @@ set -eu
# Exit if not Fedora
DISTRO=`lsb_release -si` || true
[ "Fedora" != $DISTRO ] && exit 0
[ "Fedora" != "$DISTRO" ] && exit 0
# Check if the iptables service is active
if systemctl is-active iptables.service ; then

View File

@ -5,7 +5,7 @@ DISTRO=`lsb_release -si` || true
install-packages rabbitmq-server
# In Ubuntu rabbit's default init.d script is broken.
if [ x`lsb_release -si 2> /dev/null` = "xUbuntu" ]; then
if [ "$DISTRO" == "Ubuntu" ]; then
update-rc.d -f rabbitmq-server remove
rm /etc/init.d/rabbitmq-server
cat > /etc/init/rabbitmq-server.conf <<eof