Permalink
Browse files

fix data&time db bug

  • Loading branch information...
serghey-rodin committed Oct 31, 2013
1 parent d0f6d5d commit 1c0de53944d22ac9dfbad6c7af32e9f3615dce60
Showing with 7 additions and 3 deletions.
  1. +7 −3 bin/v-add-database
View
@@ -69,9 +69,9 @@ esac
# Vesta #
#----------------------------------------------------------#
# Increasing counters
increase_dbhost_values
increase_user_value "$user" '$U_DATABASES'
# Update time and date
DATE=$(date +%F)
TIME=$(date +%T)
# Adding db to db conf
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
chmod 660 $USER_DATA/db.conf
# Increasing counters
increase_dbhost_values
increase_user_value "$user" '$U_DATABASES'
# Logging
log_history "added $type database $database"
log_event "$OK" "$EVENT"

0 comments on commit 1c0de53

Please sign in to comment.