Skip to content

Commit

Permalink
Move warning about changes from shell to MOTD
Browse files Browse the repository at this point in the history
This warning originally only displayed in root shell. As users
are switching to having multiple admin accounts, we need to
provide constructive notice that what they are doing is
potentially unsupported and may result in terrible things.

(cherry picked from commit b0c781e)
  • Loading branch information
anodos325 authored and bugclerk committed Dec 3, 2024
1 parent adedbe0 commit 3fd1bf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/freenas/root/.warning

This file was deleted.

2 changes: 0 additions & 2 deletions src/freenas/root/.zlogin
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
if [ -f /usr/local/sbin/hactl ]; then
/usr/local/sbin/hactl status -q
fi

cat ~/.warning
5 changes: 5 additions & 0 deletions src/middlewared/middlewared/etc_files/motd.mako
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
For more information, documentation, help or support, go here:
http://truenas.com

Warning: the supported mechanisms for making configuration changes
are the TrueNAS WebUI, CLI, and API exclusively. ALL OTHERS ARE
NOT SUPPORTED AND WILL RESULT IN UNDEFINED BEHAVIOR AND MAY
RESULT IN SYSTEM FAILURE.

% if motd:
${motd}
% endif

0 comments on commit 3fd1bf7

Please sign in to comment.