add_notifications.sh 2.1 KB

12345678910111213141516
  1. #!/bin/bash
  2. # Add notifications
  3. if [ ! -e '/usr/local/vesta/data/users/admin/notifications.conf' ]; then
  4. /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 <a href='http://vestacp.com/features/#filemanager'>File Manager</a>. Plugin is avaiable for <a href='/edit/server/?lead=filemanager#module-filemanager'>purchase</a>." 'filemanager'
  5. /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=sftp#module-sftp'>purchase</a> and enable <a href='http://vestacp.com/features/#sftpchroot'>SFTP Chroot</a>. "
  6. /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'
  7. /usr/local/vesta/bin/v-add-user-notification admin "Keyboard Control" "You can use your keyboard to perform many of the same actions you perform using the mouse, such as navigating to or selecting menus, and items."
  8. /usr/local/vesta/bin/v-add-user-notification admin "Release 0.9.8-16" "We are focused on continuously improving the quality of Vesta releases, and we’ve been working hard to ensure this is a stable release. <a href='http://vestacp.com/roadmap/#0.9.8-16'>release notes</a>"
  9. else
  10. sed -i "/0.9.8-15/d" /usr/local/vesta/data/users/admin/notifications.conf
  11. sed -i "/Monitoring Tools/d" /usr/local/vesta/data/users/admin/notifications.conf
  12. /usr/local/vesta/bin/v-add-user-notification admin "Keyboard Control" "You can use your keyboard to perform many of the same actions you perform using the mouse, such as navigating to or selecting menus, and items."
  13. /usr/local/vesta/bin/v-add-user-notification admin "Release 0.9.8-16" "We are focused on continuously improving the quality of Vesta releases, and we’ve been working hard to ensure this is a stable release. <a href='http://vestacp.com/roadmap/#0.9.8-16'>release notes</a>"
  14. fi