Thank you so much for putting this important script together. Mastodon is messy and admins need easier options for deployment.
Can you please modify the script to ask which directory to install to? For example, I need things in a zpool (/zpool/mastodon) since storage requirements for Mastodon are extreme. I attempted to modify the script myself by replacing all /home/ with /zpool/ and it was still expecting things to go to /home/mastodon. 'ln -s /zpool/mastoson /home/mastodon' also did not help me.
Can you please make the questions more verbose? The very first question about a new user... a new user for what? a local account, or a Mastodon admin account...? Why's it asking for an email address? I use vastly different emails for different purposes, local vs public, etc.
Can you ask to perform various tasks? For example, I went in and deleted the iptables changes. I use UFW, which is default in Ubuntu, iptables mods would mess stuff up. Simply asking the user if they want firewall changes would help. Same with SSH and fail2ban, I already have that hardened in a way better than what this script attempts to do. fail2ban is unnecessary (when you use UFW to safelist a single IP, and shut off ssh, there's no point).
In fact if you were to use UFW instead of direct iptables changes, it might simply the script and make it easier to understand for users.
Could you create a script to purge all related changes? Delete mastodon user, group, home directory, all related dependencies, etc. Purge databases. Basically flatten the server. After trying to modify your script and re-run a few times, things clearly are too complicated to undo. I'm going to need to go into the datacenter and reformat.
Thank you so much for putting this important script together. Mastodon is messy and admins need easier options for deployment.
Can you please modify the script to ask which directory to install to? For example, I need things in a zpool (/zpool/mastodon) since storage requirements for Mastodon are extreme. I attempted to modify the script myself by replacing all /home/ with /zpool/ and it was still expecting things to go to /home/mastodon. 'ln -s /zpool/mastoson /home/mastodon' also did not help me.
Can you please make the questions more verbose? The very first question about a new user... a new user for what? a local account, or a Mastodon admin account...? Why's it asking for an email address? I use vastly different emails for different purposes, local vs public, etc.
Can you ask to perform various tasks? For example, I went in and deleted the iptables changes. I use UFW, which is default in Ubuntu, iptables mods would mess stuff up. Simply asking the user if they want firewall changes would help. Same with SSH and fail2ban, I already have that hardened in a way better than what this script attempts to do. fail2ban is unnecessary (when you use UFW to safelist a single IP, and shut off ssh, there's no point).
In fact if you were to use UFW instead of direct iptables changes, it might simply the script and make it easier to understand for users.
Could you create a script to purge all related changes? Delete mastodon user, group, home directory, all related dependencies, etc. Purge databases. Basically flatten the server. After trying to modify your script and re-run a few times, things clearly are too complicated to undo. I'm going to need to go into the datacenter and reformat.