Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap: set up an motd #465

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions bootstrap/selfconfig-root
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,18 @@ run_cmd(qw(ln -s /data/pause /home/ftp));

Path::Tiny::path("/home/pause/pause/cron/CRONTAB.ROOT")->copy("/etc/cron.d/pause");

{
# We want to see the MOTD when logging in, but we don't want the "Debian has no
# warranty" text, which is a distraction. -- rjbs, 2024-04-27
Path::Tiny::path("/etc/ssh/sshd_config.d/pause-motd")->spew("PrintMotd yes\n");
Path::Tiny::path("/etc/motd")->spew("");

Path::Tiny::path("/etc/update-motd.d/00-pause")->spew(<<~'END')->chmod('a+x');
#!/bin/sh
cat /home/pause/pause/etc/motd
END
}

if ($opt->enable_mail) {
my $relayhost = $opt->relay_host;
my $relayport = $opt->relay_port;
Expand Down
16 changes: 16 additions & 0 deletions etc/motd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

welcome oooooooooo o ooooo oooo oooooooo8 ooooooooooo
to 888 888 888 888 88 888 888 88
888oooo88 8 88 888 88 888oooooo 888ooo8
888 8oooo88 888 88 888 888 oo
o888o o88o o888o 888oo88 o88oooo888 o888ooo8888

You're probably here to check whether things are working, or to deploy
and update to PAUSE. For more information on doing this stuff, check the
docs: https://github.com/andk/pause/tree/master/doc

They're not thorough yet, but they will get better.

To act as the pause user, remember to run: sudo -u pause -i


Loading