Skip to content

Commit

Permalink
Move warning about changes from shell to MOTD (#15086)
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.
  • Loading branch information
anodos325 authored Dec 3, 2024
1 parent e78fb4f commit 1525669
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 1525669

Please sign in to comment.