feat(profile): motd: make it more generic.
This commit is contained in:
parent
1204e29fb9
commit
7a352cb7df
1 changed files with 8 additions and 12 deletions
|
|
@ -18,17 +18,11 @@ profile motd @{exec_path} {
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{sh_path} rix,
|
@{sh_path} rix,
|
||||||
@{bin}/{e,}grep rix,
|
@{coreutils_path} rix,
|
||||||
@{bin}/cat rix,
|
@{bin}/cloud-id rix,
|
||||||
@{bin}/cut rix,
|
|
||||||
@{bin}/find rix,
|
|
||||||
@{bin}/head rix,
|
|
||||||
@{bin}/hostname rPx,
|
@{bin}/hostname rPx,
|
||||||
@{bin}/id rix,
|
|
||||||
@{bin}/snap rPx,
|
@{bin}/snap rPx,
|
||||||
@{bin}/sort rix,
|
@{bin}/wget rix,
|
||||||
@{bin}/tr rix,
|
|
||||||
@{bin}/uname rPx,
|
|
||||||
|
|
||||||
@{lib}/ubuntu-release-upgrader/release-upgrade-motd rPx,
|
@{lib}/ubuntu-release-upgrader/release-upgrade-motd rPx,
|
||||||
@{lib}/update-notifier/update-motd-fsck-at-reboot rPx,
|
@{lib}/update-notifier/update-motd-fsck-at-reboot rPx,
|
||||||
|
|
@ -45,6 +39,8 @@ profile motd @{exec_path} {
|
||||||
/var/lib/update-notifier/updates-available r,
|
/var/lib/update-notifier/updates-available r,
|
||||||
/var/lib/ubuntu-advantage/messages/motd-esm-announce r,
|
/var/lib/ubuntu-advantage/messages/motd-esm-announce r,
|
||||||
|
|
||||||
|
/tmp/tmp.@{rand10} w,
|
||||||
|
|
||||||
@{run}/motd.d/{,*} r,
|
@{run}/motd.d/{,*} r,
|
||||||
@{run}/motd.dynamic.new rw,
|
@{run}/motd.dynamic.new rw,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue