mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
Release 0.9.8-23
This commit is contained in:
parent
d880b5b425
commit
cde4269170
14 changed files with 60 additions and 11 deletions
20
upd/fix_dhcprenew.sh
Executable file
20
upd/fix_dhcprenew.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -e "/usr/bin/dhcprenew" ]; then
|
||||
mv /usr/bin/dhcprenew /usr/bin/dhcprenew.disabled
|
||||
|
||||
# Notify admin via control panel
|
||||
rm /usr/local/vesta/data/users/admin/notifications.conf
|
||||
touch /usr/local/vesta/data/users/admin/notifications.conf
|
||||
/usr/local/vesta/bin/v-add-user-notification admin \
|
||||
"Security Check" "Your server was compromised please contact us at info@vestacp.com to get help."
|
||||
|
||||
# Send email notification
|
||||
send_mail="/usr/local/vesta/web/inc/mail-wrapper.php"
|
||||
email=$(grep CONTACT /usr/local/vesta/data/users/admin/user.conf |cut -f2 -d \')
|
||||
if [ ! -z "$email" ]; then
|
||||
echo "Your server $(hostname) was compromised please contact us at info@vestacp.com to get help." |\
|
||||
$send_mail -s "SECURITY CHECK: Vesta Control Panel" $email
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue