mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
fix database restoration when database already exists
This commit is contained in:
parent
405cd4bdb1
commit
e8a5188eff
1 changed files with 2 additions and 0 deletions
|
@ -647,6 +647,8 @@ if [ "$db" != 'no' ]; then
|
||||||
str="$str TYPE='$TYPE' CHARSET='$CHARSET' U_DISK='$U_DISK'"
|
str="$str TYPE='$TYPE' CHARSET='$CHARSET' U_DISK='$U_DISK'"
|
||||||
str="$str SUSPENDED='no' TIME='$(date +%T)' DATE='$(date +%F)'"
|
str="$str SUSPENDED='no' TIME='$(date +%T)' DATE='$(date +%F)'"
|
||||||
echo $str >> $USER_DATA/db.conf
|
echo $str >> $USER_DATA/db.conf
|
||||||
|
else
|
||||||
|
eval $(grep "DB='$db'" $USER_DATA/db.conf)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "$(date "+%F %T") $DB"
|
echo -e "$(date "+%F %T") $DB"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue