Closed 68267a closed 3 years ago
This is because we support Debian, Ubuntu, Mint.
We don't support other OSs' for the installer. There's just too many variables to consider.
The reason for the single instance case is a future proofing technique so if we do need to support another OS (say Pop!_OS for example) we can add in the case statement for it and have a reference technique. Not everyone automatically know how to use a case statement within bash scripting. This just allows a simpler method to add any inclusions.
What I meant is that you have a switch with only one case and no default.
If a fork isn't supported then the installer should exit and provide minimum requirements. Otherwise the case that you do have should be the default, and any exceptions should have their own case.
Not sure if it was obvious from the os-release, Pop! OS is a fork of Ubuntu, no different than Mint.
We don't have a default because reasons? There isn't really a need to set a default. It looks like the case statement was put in to add potential fixes for things.
We don't exit out simply because some times the installer will work fine. For example, I am fairly sure ElementaryOS will install just fine even though it's not "officially" supported.
I'm running System76's Pop!_OS. The fog installer fails to set
$dbservice
here:Which causes the script to exit at
systemctl is-active $dbservice
with code 127I'm assuming this is because the packages list is basically empty, which is set here:
I don't understand why there's a
case
statement with only one clause. I edited /etc/os-release and it was able to continue, but failed at some point later. ~Probably a separate issue.~ edit: apache couldn't start because port 80 was already in use by an old nginx install for some reason.