clean-ups in the file

- replace tabs with 4 spaces
- removed trailing spaces
- fixed indenting
- made if; then look the same
This commit is contained in:
Remi Bergsma 2015-08-11 14:55:16 +02:00
parent ee9b644e28
commit 2f858a7d08

View File

@ -54,7 +54,8 @@ do
u) uflag=1 u) uflag=1
url="$OPTARG" url="$OPTARG"
;; ;;
F) Fflag=1 ;; F) Fflag=1
;;
t) templateId="$OPTARG" t) templateId="$OPTARG"
;; ;;
e) ext="$OPTARG" e) ext="$OPTARG"
@ -106,16 +107,20 @@ then
failed 3 failed 3
fi fi
if [ -f /etc/cloudstack/management/db.properties ]; then if [ -f /etc/cloudstack/management/db.properties ]
if [ "$pflag" != 1 ]; then then
if [ "$pflag" != 1 ]
then
dbPort=$(sed '/^\#/d' /etc/cloudstack/management/db.properties | grep 'db.cloud.port' | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//') dbPort=$(sed '/^\#/d' /etc/cloudstack/management/db.properties | grep 'db.cloud.port' | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
fi fi
if [ "$oflag" != 1 ]; then if [ "$oflag" != 1 ]
then
dbHost=$(sed '/^\#/d' /etc/cloudstack/management/db.properties | grep 'db.cloud.host' | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//') dbHost=$(sed '/^\#/d' /etc/cloudstack/management/db.properties | grep 'db.cloud.host' | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
fi fi
if [ "$rflag" != 1 ]; then if [ "$rflag" != 1 ]
then
dbUser=$(sed '/^\#/d' /etc/cloudstack/management/db.properties | grep 'db.cloud.username' | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//') dbUser=$(sed '/^\#/d' /etc/cloudstack/management/db.properties | grep 'db.cloud.username' | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
fi fi