mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Release 0.9.8-15
This commit is contained in:
parent
cdcda8d1e6
commit
95aab70c3e
10 changed files with 68 additions and 54 deletions
10
upd/add_notifications.sh
Executable file
10
upd/add_notifications.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
# Add notifications
|
||||
|
||||
if [ ! -e '/usr/local/vesta/data/users/admin/notifications.conf' ]; then
|
||||
/usr/local/vesta/bin/v-add-user-notification admin "File Manager" "Browse, coppy, edit, view, and retrieve all of your web domain files using fully featured File Manager. Plugin is avaiable 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 have SFTP accounts that will be used only to transfer files (and not to ssh), you can <a href='/edit/server/?lead=filemanager#module-sftp'>purchase</a> SFTP Chroot plugin."
|
||||
/usr/local/vesta/bin/v-add-user-notification admin "Starred Objects" "Use stars to easily mark certain object as important or to indicate that you need to do something about it later." 'starred'
|
||||
/usr/local/vesta/bin/v-add-user-notification admin "Monitoring Tools" "This module answers common performance, health, usage and monitoring questions. <a href='/list/server/?cpu'> Server -> Show CPU, Memory, Disk usage</a>"
|
||||
/usr/local/vesta/bin/v-add-user-notification admin "Release 0.9.8-15" "New version is cool. A lot of work has been put in the user experience and stability. Check out <a href='http://vestacp.com/roadmap/#0.9.8-15'>release notes</a>"
|
||||
fi
|
|
@ -1,10 +1,18 @@
|
|||
#!/bin/bash
|
||||
# New sudoers format
|
||||
|
||||
if [ ! -e /etc/sudoers.d/admin ]; then
|
||||
echo "# Created by vesta update-trigger" > /etc/sudoers.d/admin
|
||||
echo "# $(date)" >> /etc/sudoers.d/admin
|
||||
echo "admin ALL=(ALL) ALL" >> /etc/sudoers.d/admin
|
||||
echo "admin ALL=NOPASSWD:/usr/local/vesta/bin/*" >> /etc/sudoers.d/admin
|
||||
if [ ! -e '/etc/sudoers.d/admin' ]; then
|
||||
if [ ! -d '/etc/sudoers.d' ]; then
|
||||
mkidr /etc/sudoers.d
|
||||
chmod 750 /etc/sudoers.d
|
||||
fi
|
||||
echo '# Created by vesta update-trigger' > /etc/sudoers.d/admin
|
||||
echo 'Defaults env_keep="VESTA"' >> /etc/sudoers.d/admin
|
||||
echo 'Defaults:admin !syslog' >> /etc/sudoers.d/admin
|
||||
echo 'Defaults:admin !requiretty' >> /etc/sudoers.d/admin
|
||||
echo '' >> /etc/sudoers.d/admin
|
||||
echo 'admin ALL=(ALL) ALL' >> /etc/sudoers.d/admin
|
||||
echo 'admin ALL=NOPASSWD:/usr/local/vesta/bin/*' >> /etc/sudoers.d/admin
|
||||
chmod 440 /etc/sudoers.d/admin
|
||||
|
||||
if [ -z "$(grep /etc/sudoers.d /etc/sudoers)" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue