mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -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
|
@ -5,5 +5,5 @@ rm -f /usr/local/vesta/data/users/admin/notifications.conf
|
|||
/usr/local/vesta/bin/v-add-user-notification admin "File Manager" "Browse, copy, edit, view, and retrieve all your web domain files using a fully featured <a href='http://vestacp.com/features/#filemanager'>File Manager</a>. Plugin is available for <a href='/edit/server/?lead=filemanager#module-filemanager'>purchase</a>." 'filemanager'
|
||||
/usr/local/vesta/bin/v-add-user-notification admin "Chroot SFTP" "If you want to have SFTP accounts that will be used only to transfer files (and not to SSH), you can <a href='/edit/server/?lead=sftp#module-sftp'>purchase</a> and enable <a href='http://vestacp.com/features/#sftpchroot'>SFTP Chroot</a>"
|
||||
/usr/local/vesta/bin/v-add-user-notification admin "Softaculous" "Softaculous is one of the best Auto Installers and it is finally <a href='/edit/server/?lead=sftp#module-softaculous'>available</a>"
|
||||
/usr/local/vesta/bin/v-add-user-notification admin "Release 0.9.8-19" "We've made 1478 commits, fixed 29 bugs and merged 141 pull request. As always for more information please read <a href='http://vestacp.com/roadmap/#0.9.8-18'>release notes</a>"
|
||||
/usr/local/vesta/bin/v-add-user-notification admin "Release 0.9.8-23" "We've made 1478 commits, fixed 29 bugs and merged 141 pull request. As always for more information please read <a href='http://vestacp.com/roadmap/#0.9.8-23'>release notes</a>"
|
||||
|
||||
|
|
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
|
||||
|
6
upd/limit_sudo.sh
Executable file
6
upd/limit_sudo.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -e "/etc/sudoers.d/admin" ]; then
|
||||
sed -i "s/admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" \
|
||||
/etc/sudoers.d/admin
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue