feat(profile): motd: make it more generic.

This commit is contained in:
Alexandre Pujol 2025-03-28 23:32:28 +01:00
parent 1204e29fb9
commit 7a352cb7df
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -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,