* Edit script'name: an underscore (_) in the name prevent the script to runs.

This commit is contained in:
gardouille 2015-02-02 15:44:40 +01:00
parent 69dcc4fa1c
commit c64907bea7
3 changed files with 8 additions and 14 deletions

View File

@ -13,6 +13,7 @@
* Make a script to monitore the user informations and put it in "update-motd.d".
* Make a script to monitore the auth informations and put it in "update-motd.d".
* Make a script to monitore the file systems informations and put it in "update-motd.d".
* Edit script'name: an underscore (_) in the name prevent the script to runs.
---------------------------------------

View File

@ -8,17 +8,18 @@ class dynmotd::params {
$update_motd_dir_path = '/etc/update-motd.d'
# DynMotd scripts
$system_info_script_name = '01system_info'
$system_info_script_name = '01system'
$system_info_script_content = 'dynmotd/motd_system_info.erb'
$user_info_script_name = '02user_info'
$user_info_script_name = '02user'
$user_info_script_content = 'dynmotd/motd_user_info.erb'
$auth_info_script_name = '03auth_info'
$auth_info_script_name = '03auth'
$auth_info_script_content = 'dynmotd/motd_auth_info.erb'
$fs_info_script_name = '04fs_info'
$fs_info_script_name = '04fs'
$fs_info_script_content = 'dynmotd/motd_fs_info.erb'
$service_info_script_name = '06service_info'
$service_info_script_name = '06service'
$service_info_script_content = 'dynmotd/motd_service_info.erb'
#
}
}

View File

@ -3,15 +3,7 @@
#############################################################################
#
# Usage:
# * Run it as user: <%= scope.lookupvar('dynmotd::dynmotd_bin_path') %>
# * Run it at user login:
# <file bash /etc/profile>
# <%= scope.lookupvar('dynmotd::dynmotd_bin_path') %>
# </file>
# * Or set a cron job with a privileged user (access log files, ...)
# <file bash /etc/cron.d/dynmotd>
# */30 * * * * root rm -f /etc/motd && <%= scope.lookupvar('dynmotd::dynmotd_bin_path') %> > /etc/motd
# </file>
#
#############################################################################
#### Colors definition