* Edit script'name: an underscore (_) in the name prevent the script to runs.
This commit is contained in:
parent
69dcc4fa1c
commit
c64907bea7
|
@ -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 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 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".
|
* 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.
|
||||||
|
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -8,17 +8,18 @@ class dynmotd::params {
|
||||||
$update_motd_dir_path = '/etc/update-motd.d'
|
$update_motd_dir_path = '/etc/update-motd.d'
|
||||||
|
|
||||||
# DynMotd scripts
|
# DynMotd scripts
|
||||||
$system_info_script_name = '01system_info'
|
$system_info_script_name = '01system'
|
||||||
$system_info_script_content = 'dynmotd/motd_system_info.erb'
|
$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'
|
$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'
|
$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'
|
$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'
|
$service_info_script_content = 'dynmotd/motd_service_info.erb'
|
||||||
|
|
||||||
|
#
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,15 +3,7 @@
|
||||||
#############################################################################
|
#############################################################################
|
||||||
#
|
#
|
||||||
# Usage:
|
# 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
|
#### Colors definition
|
||||||
|
|
Loading…
Reference in New Issue