mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
ee9b644e28
commit
2f858a7d08
@ -54,7 +54,8 @@ do
|
||||
u) uflag=1
|
||||
url="$OPTARG"
|
||||
;;
|
||||
F) Fflag=1 ;;
|
||||
F) Fflag=1
|
||||
;;
|
||||
t) templateId="$OPTARG"
|
||||
;;
|
||||
e) ext="$OPTARG"
|
||||
@ -106,16 +107,20 @@ then
|
||||
failed 3
|
||||
fi
|
||||
|
||||
if [ -f /etc/cloudstack/management/db.properties ]; then
|
||||
if [ "$pflag" != 1 ]; then
|
||||
if [ -f /etc/cloudstack/management/db.properties ]
|
||||
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:]]*$//')
|
||||
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:]]*$//')
|
||||
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:]]*$//')
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user