Skip to content

Commit ed7f052

Browse files
committed
rebuild cron jobs on email change
1 parent f5471fe commit ed7f052

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/v-change-user-contact

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ pw_str=$(grep -n "^$user:" /etc/passwd)
3939
str=$(echo "$pw_str" | cut -f 1 -d :)
4040
sed -i "$str s/$old_email/$email/g" /etc/passwd
4141

42+
# Update crontab email
43+
$BIN/v-rebuild-cron-jobs $user > /dev/null 2>&1
44+
4245

4346
#----------------------------------------------------------#
4447
# Vesta #

0 commit comments

Comments
 (0)