We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f6d5d commit 1c0de53Copy full SHA for 1c0de53
bin/v-add-database
@@ -69,9 +69,9 @@ esac
69
# Vesta #
70
#----------------------------------------------------------#
71
72
-# Increasing counters
73
-increase_dbhost_values
74
-increase_user_value "$user" '$U_DATABASES'
+# Update time and date
+DATE=$(date +%F)
+TIME=$(date +%T)
75
76
# Adding db to db conf
77
str="DB='$database' DBUSER='$dbuser' MD5='$md5' HOST='$host' TYPE='$type'"
@@ -80,6 +80,10 @@ str="$str DATE='$DATE'"
80
echo "$str" >> $USER_DATA/db.conf
81
chmod 660 $USER_DATA/db.conf
82
83
+# Increasing counters
84
+increase_dbhost_values
85
+increase_user_value "$user" '$U_DATABASES'
86
+
87
# Logging
88
log_history "added $type database $database"
89
log_event "$OK" "$EVENT"
0 commit comments