mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -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 SUSPENDED='no' TIME='$(date +%T)' DATE='$(date +%F)'"
|
||||
echo $str >> $USER_DATA/db.conf
|
||||
else
|
||||
eval $(grep "DB='$db'" $USER_DATA/db.conf)
|
||||
fi
|
||||
|
||||
echo -e "$(date "+%F %T") $DB"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue