ispmanager 6

/
/
Bulk adding of menu sections to favorites

Bulk adding of menu sections to favorites

Why?

To quickly organize ispmanager 6 panel menus on new setups.

Instructions

Log in under the “root” user, add all the menu items you need in the “Navigation board” section to your favorites.

Connect to the server via SSH and copy the value of the FavoriteMenu directive from the /usr/local/mgr5/var/userconf/ispmgr.root file.

Example of getting a list of menu items:

grep FavoriteMenu /usr/local/mgr5/var/userconf/ispmgr.root
FavoriteMenu admin backup2.superlist.import ftp.user phpversions services userlogs.users

 

This value can now be applied to the FavoriteMenu parameter in administrator configuration files, including “root”. For example, to add this list for the administrator named “developer”, replace the value in /usr/local/mgr5/var/userconf/ispmgr.developer:

sed -i 's/.*FavoriteMenu.*/FavoriteMenu firewall ftp.user firewall ftp.user phpversions shell user.preset/g' /usr/local/mgr5/var/userconf/ispmgr.developer

In this article