mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
rebuild cron jobs on email change
This commit is contained in:
parent
f5471fec12
commit
ed7f05283b
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ pw_str=$(grep -n "^$user:" /etc/passwd)
|
|||
str=$(echo "$pw_str" | cut -f 1 -d :)
|
||||
sed -i "$str s/$old_email/$email/g" /etc/passwd
|
||||
|
||||
# Update crontab email
|
||||
$BIN/v-rebuild-cron-jobs $user > /dev/null 2>&1
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue