While working on a local, dev instance, it’s useful to minimize ‘noise’.
Out of the box, PI
(1) on each sign-in, pops up four separate ‘Welcome’ dialogs re: getting an SLA, etc. each requires a dismiss click.
(2) on each exec of ‘pi-manage’ @ shell, returns/prints an ascii-art logo
For the 1st, reading @
states the dialog can be deactivated, at least for ‘small’ installs,
The administrator can define a policy (scope=webui, action=hide_welcome) which deactivates this welcome dialog. Anyway, if you run privacyIDEA with more than 50 assigned tokens and without subscription/SLA, we think it is a good idea, to warn the administrator again about the intrinsic risk running a software without warranty. The welcome dialog will be displayed again.
I set a policy
pi-manage policy create welcome_disable webui hide_welcome
check that it’s in-place & active
pi-manage policy list Active Name Scope ======================================== True welcome_disable webui
but, still @ each login, the dialogs pop up.
What specifically needs to be done to quiet these dialogs?
For the 2nd, the source of the ascii-art is in the ‘pi-manage’ script itself,
bin/pi-manage ... if __name__ == '__main__': # We add one blank line, to separate the messages from the initialization print(""" _ _______ _______ ___ ____(_) _____ _______ __/ _/ _ \/ __/ _ | / _ \/ __/ / |/ / _ `/ __/ // // // // / _// __ | / .__/_/ /_/|___/\_,_/\__/\_, /___/____/___/_/ |_| /_/ /___/ """) manager.run()
Short of rm’ing those lines, is there a flag/policy to set that disables that shell output?