mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
fix data&time db bug
This commit is contained in:
parent
d0f6d5d65f
commit
1c0de53944
1 changed files with 7 additions and 3 deletions
|
@ -69,9 +69,9 @@ esac
|
||||||
# Vesta #
|
# Vesta #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Increasing counters
|
# Update time and date
|
||||||
increase_dbhost_values
|
DATE=$(date +%F)
|
||||||
increase_user_value "$user" '$U_DATABASES'
|
TIME=$(date +%T)
|
||||||
|
|
||||||
# Adding db to db conf
|
# Adding db to db conf
|
||||||
str="DB='$database' DBUSER='$dbuser' MD5='$md5' HOST='$host' TYPE='$type'"
|
str="DB='$database' DBUSER='$dbuser' MD5='$md5' HOST='$host' TYPE='$type'"
|
||||||
|
@ -80,6 +80,10 @@ str="$str DATE='$DATE'"
|
||||||
echo "$str" >> $USER_DATA/db.conf
|
echo "$str" >> $USER_DATA/db.conf
|
||||||
chmod 660 $USER_DATA/db.conf
|
chmod 660 $USER_DATA/db.conf
|
||||||
|
|
||||||
|
# Increasing counters
|
||||||
|
increase_dbhost_values
|
||||||
|
increase_user_value "$user" '$U_DATABASES'
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
log_history "added $type database $database"
|
log_history "added $type database $database"
|
||||||
log_event "$OK" "$EVENT"
|
log_event "$OK" "$EVENT"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue