mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Fix /edit/server/ always says database unsupported
This commit changes interface of bin/v-list-database-hosts
This commit is contained in:
parent
656d34ed0b
commit
e0f695e493
5 changed files with 83 additions and 89 deletions
|
@ -28,12 +28,12 @@ json_list() {
|
|||
fi
|
||||
done
|
||||
|
||||
echo "{"
|
||||
echo "["
|
||||
for type in $(echo $DB_SYSTEM |sed -e 's/,/\n/'); do
|
||||
if [ -e "$VESTA/conf/$type.conf" ]; then
|
||||
for str in $(cat $VESTA/conf/$type.conf); do
|
||||
eval $str
|
||||
echo -n ' "'$HOST'": {
|
||||
echo -n ' {
|
||||
"HOST": "'$HOST'",
|
||||
"TYPE": "'$type'",
|
||||
"CHARSETS": "'$CHARSETS'",
|
||||
|
@ -54,7 +54,7 @@ json_list() {
|
|||
done
|
||||
fi
|
||||
done
|
||||
echo '}'
|
||||
echo ']'
|
||||
}
|
||||
|
||||
# SHELL list function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue