X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmotd%2Ftemplates%2Fmotd.erb;h=496b5dde6e608cfc6fb4e5a11beaaf8944597a78;hb=34d7a2d4ccd05b5d0f13bfe5c49b0d588cacbe98;hp=840832523f9cfc830c8dc32570af00b9c04eb5a6;hpb=b683762d16fefcf8fda1b1178b35c2e5e4cdffa2;p=mirror%2Fdsa-puppet.git diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 840832523..496b5dde6 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -12,12 +12,8 @@ def wrap(s, width=78) end def markup(l) - if l =~ /\[\[(\*|-)?(.*?)\]\]/ - l = $2 - end - if l =~ /\[\[(.*?)\|(.*?)\]\]/ - l = $2 - end + l = l.gsub(/\[\[(.*?)\|(.*?)\]\]/, '\2') + l = l.gsub(/\[\[(\*|-)?(.*?)\]\]/, '\2') return l end @@ -41,7 +37,7 @@ if (nodeinfo['ldap'].has_key?('purpose')) end purp += " porterbox\n" purp += "\n" - purp += "See 'dchroot -l' for a list of available chroots.\n" + purp += "See 'dchroot -l' or 'schroot -l' for a list of available chroots.\n" if nodeinfo['ldap'].has_key?('admin') purp += "Please contact #{nodeinfo['ldap']['admin'][0]} for install requests,\n" purp += "following the recommendations in .\n"