Skip to content

Commit 2369cbc

Browse files
committed
new history logging system
1 parent f42db82 commit 2369cbc

File tree

86 files changed

+106
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+106
-151
lines changed

bin/v_add_cron_job

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ increase_user_value $user '$U_CRON_JOBS'
7575
$BIN/v_restart_cron "$EVENT"
7676

7777
# Logging
78-
log_history "$EVENT"
78+
log_history "added cron job $job"
7979
log_event "$OK" "$EVENT"
8080

8181
exit

bin/v_add_cron_report

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ sync_cron_jobs
4848
$BIN/v_restart_cron "$EVENT"
4949

5050
# Logging
51-
log_history "$EVENT"
51+
log_history "enabled cron reporting"
5252
log_event "$OK" "$EVENT"
5353

5454
exit

bin/v_add_database

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ echo "$str" >> $USER_DATA/db.conf
8080
chmod 660 $USER_DATA/db.conf
8181

8282
# Logging
83-
log_history "$EVENT"
83+
log_history "added $type database $database"
8484
log_event "$OK" "$EVENT"
8585

8686
exit

bin/v_add_database_server

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ chmod 660 $VESTA/conf/$type.conf
7373
#----------------------------------------------------------#
7474

7575
# Logging
76+
log_history "added $type database server $host" '' 'admin'
7677
log_event "$OK" "$EVENT"
7778

7879
exit

bin/v_add_dns_domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ if [ "$restart" != 'no' ]; then
137137
fi
138138

139139
# Logging
140-
log_history "$EVENT"
140+
log_history "added dns domain $domain"
141141
log_event "$OK" "$EVENT"
142142

143143
exit

bin/v_add_dns_domain_record

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ if [ "$restart" != 'no' ]; then
8686
fi
8787

8888
# Logging
89-
log_history "$EVENT"
89+
log_history "added $rtype dns record $record for $domain"
9090
log_event "$OK" "$EVENT"
9191

9292
exit

bin/v_add_dns_on_web_alias

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,5 @@ fi
7676
#----------------------------------------------------------#
7777

7878
# No Logging
79-
#log_history "$EVENT"
80-
#log_event "$OK" "$EVENT"
8179

8280
exit

bin/v_add_mail_account

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ increase_user_value "$user" '$U_MAIL_ACCOUNTS'
6767
update_object_value 'mail' 'DOMAIN' "$domain" '$ACCOUNTS' "$accounts"
6868

6969
# Logging
70-
log_history "$EVENT"
70+
log_history "added mail account $account@$domain"
7171
log_event "$OK" "$EVENT"
7272

7373
exit

bin/v_add_mail_account_alias

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fi
6262
update_object_value "mail/$domain" 'ACCOUNT' "$account" '$ALIAS' "$aliases"
6363

6464
# Logging
65-
log_history "$EVENT"
65+
log_history "added alias $malias to $account@$domain "
6666
log_event "$OK" "$EVENT"
6767

6868
exit

bin/v_add_mail_account_autoreply

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ chmod 660 $USER_DATA/mail/$account@$domain.msg
5858
update_object_value "mail/$domain" 'ACCOUNT' "$account" '$AUTOREPLY' 'yes'
5959

6060
# Logging
61-
log_history "$EVENT"
61+
log_history "added autoreply message on $account@$domain"
6262
log_event "$OK" "$EVENT"
6363

6464
exit

0 commit comments

Comments
 (0)