|
|
Line 159: |
Line 159: |
| iptables-restore < /etc/iptables/rules.v4 | | iptables-restore < /etc/iptables/rules.v4 |
| ip6tables-restore < /etc/iptables/rules.v6 | | ip6tables-restore < /etc/iptables/rules.v6 |
| </syntaxhighlight>
| |
|
| |
|
| |
|
| |
| == Setting up an SMTP server ==
| |
| By default, Linode disables SMTP ports 587 etc. This requires a manual human-facing support ticket to remove. (Done by @Jonny on Nov 25 2022)
| |
|
| |
| == Setting up an admin account from CLI w/ email confirmation ==
| |
| Note that you need to be logged in as the mastodon user for this to work.
| |
|
| |
| <OPTIONAL> If you did not create that user account and don't know the password, then you should do the following:<syntaxhighlight lang="bash">
| |
| sudo su - mastodon
| |
| </syntaxhighlight>The following command will work if the username and email have been registered from the UI. Very useful if SMTP server hasn't been setup yet.<syntaxhighlight lang="bash">
| |
| cd /home/mastodon/live
| |
| RAILS_ENV=production ./bin/tootctl accounts modify <username> --role Admin --email <email-address> --confirm
| |
| </syntaxhighlight> | | </syntaxhighlight> |